Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icecast-metadata-player retry / reconnect logic not working in iOS 17 #192

Open
blantonl opened this issue Nov 17, 2023 · 1 comment
Open

Comments

@blantonl
Copy link

The retry / reconnect logic is not working in iOS 17. For instance, if roaming from Wifi to Cellular, the player just stops and doesn't attempt to reconnect.

This can be recreated on the the bare minimum demo: https://eshaz.github.io/icecast-metadata-js/bare-minimum-demo.html

Using an iOS 17 device, start the stream while connected to Wifi, and then turn off Wifi and the stream stops and doesn't attempt to reconnect. I've also verified this behavior by manually roaming from Wifi to cellular - the player just stops.

@eshaz
Copy link
Owner

eshaz commented Nov 26, 2023

Thanks for entering this issue.

I'm wondering if the connection is not being aborted by iOS when the network changes from WiFi to cellular. The fetch request being aborted / throwing an exception is what triggers the retry logic. Could you reproduce this with your iPhone connected to the dev tools in Safari so you can view the network tab to verify this?

If this is the case, I could add a feature that will trigger a retry once the audio buffer runs out so it doesn't have to rely on the browser's fetch implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants