react-native-play-audio
react-native-play-audio copied to clipboard
Local audio file doesn't play in device.
Hi,
The Url is working fine but local recording store .mp3 file doesn't play. can you help me for it.
Thanks.
I thing the owner run away... The same here
@ithustle same problem here. Have you found a good react-native sound package that works well including playing in the background in iOS?
react-native-sound doesn't work for me in iOS, react-react-native-sound-player works on iOS but can't get it to work in the background in iOS while this seems to work in iOS background but only with online file and I am finding it difficult to get it to reuse a preloaded file again and again so that the client won't have to download the mp3 file each time it needs to play.
@danias I'm still use react-native-play-audio. I figure out a way to play local and stream audio. I re-use the library and made this lib as a Native Module on my project. Now is working well. But not figure out how can I detected when music is end. Try this, if you get it, tell me.
@ithustle I guess we have done the same thing. I have submitted a pull request with a fix for the local files in a similar way as you describe but I can't figure out either why the onEnd callback doesn't work. I don't really need the onEnd callback at the moment so I don't think I will spend more time on it. If I do fix it I will let you know.