react-native-audio-recorder-player
react-native-audio-recorder-player copied to clipboard
Network outage, use startPlayer to play URL, error callback required
Please fill the template to help you out. Also, please try the
Example
project compare before submiting the issue when you have certain issue with your project setup.
Version of react-native-audio-recorder-player
- react-native-audio-recorder-player:3.3.0
Version of React Native
- React Native: 0.63.4
Platforms you faced the error (IOS or Android or both?)
- both
Expected behavior
- Network outage, use startPlayer to play URL, error callback required
Actual behavior
- Android and ios have no error callbacks
Steps to reproduce the behabior
- Shut down the network
- use startPlayer to play URL
hi @hyochan , do you have thoughts on this? This library works great, but when playing track from the network, it loads a bit slow and when the network is really bad, it would make the app freeze (i guess it's blocking the js). This particular issue is really painful, other things work great!
Looks like this is a great issue to be covered. I've tried to handle the error message when URL is not player in #480, however, they do not throw the error 🤔
What would be the good proposal to handle such issue like this?