react-native-audio-recorder-player icon indicating copy to clipboard operation
react-native-audio-recorder-player copied to clipboard

Network outage, use startPlayer to play URL, error callback required

Open liaojh554 opened this issue 2 years ago • 1 comments

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

  1. Shut down the network
  2. use startPlayer to play URL

liaojh554 avatar Jan 19 '22 10:01 liaojh554

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!

nastarfan avatar Aug 18 '22 03:08 nastarfan

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?

hyochan avatar Oct 15 '22 12:10 hyochan