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.
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.