zmxv / react-native-sound

React Native module for playing sound clips
MIT License
2.79k stars 748 forks source link

!Dont use this library to stream large files #292

Open viperfx opened 6 years ago

viperfx commented 6 years ago

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.

alenia commented 6 years ago

Do you have another library suggestion instead?

tfaieta commented 6 years ago

What library should be used then? @viperfx

kesha-antonov commented 6 years ago

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

It uses AVPlayer

jamsch commented 6 years ago

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.

KoolP commented 2 years ago

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