Playing Local audio files with expo-av - React-Native

Viewed 1985

I am trying to develop a simple audio player in react-native using expo and for that i am using expo-av api, which play/record audio file and for fetching audio files from phone, i am using expo-media-library.

The problem is expo-media-library provides an array of objects for each file with some properties, including file path named 'uri'. When i try to set that path with expo-audio source path, it does not work. i guess i need to establish a url link of the path but don't know how to do this.

Project Sample: https://snack.expo.io/@m_usman/audioplayer

0 Answers
Related