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

Audio stuck when switching networks

Open ThisIsSet-L opened this issue 6 years ago • 0 comments

When using on mobile, and transferring from 4G to WiFi, the audio enters a stuck state, where it's state is "PLAYING", and onError doesn't fire (which it would with a HTML5 Audio tag).

Because I'm playing back an Icecast stream, this means the user has to dig out their phone, stop the playback, and restart it manually, which is frustrating for users.

Adding an onStalled event would allow me to automate restarting the playback.

ThisIsSet-L avatar May 13 '19 14:05 ThisIsSet-L