react-native-play-audio icon indicating copy to clipboard operation
react-native-play-audio copied to clipboard

Local audio file doesn't play in device.

Open kiritm-nimblechapps opened this issue 7 years ago • 4 comments

Hi,

The Url is working fine but local recording store .mp3 file doesn't play. can you help me for it.

Thanks.

kiritm-nimblechapps avatar Dec 20 '17 04:12 kiritm-nimblechapps

I thing the owner run away... The same here

ithustle avatar Jun 07 '18 13:06 ithustle

@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 avatar Oct 13 '18 21:10 danias

@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 avatar Oct 13 '18 23:10 ithustle

@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.

danias avatar Oct 14 '18 01:10 danias