react-native-sound icon indicating copy to clipboard operation
react-native-sound copied to clipboard

!Dont use this library to stream large files

Open viperfx opened this issue 9 years ago • 5 comments

This should be a disclaimer on the repo itself. This library uses AVAudioPlayer, and thus it is not suitable for large remote files or streaming. It has to download the file into memory and then play it.

It should have been implemented with AVPlayer.

viperfx avatar Oct 19 '17 00:10 viperfx

Do you have another library suggestion instead?

alenia avatar Oct 20 '17 03:10 alenia

What library should be used then? @viperfx

tfaieta avatar Nov 04 '17 19:11 tfaieta

Maybe this https://github.com/futurice/react-native-audio-toolkit

It uses AVPlayer

kesha-antonov avatar Nov 06 '17 17:11 kesha-antonov

I stumbled upon this problem as well. A 16 minute 6.7MB file would never load on iOS so I was forced to switch to react-native-audio-toolkit.

jamsch avatar Nov 28 '17 02:11 jamsch

Same problem here. This 700kB file plays: https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_700KB.mp3 This 5mb file does not work on iOS but works on Android: https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_5MG.mp3

KoolP avatar Nov 02 '21 11:11 KoolP