eshaz / icecast-metadata-js

Browser and NodeJS packages for playing and reading Icecast compatible streaming audio with realtime metadata updates.
164 stars 20 forks source link

Unable to resume audio on iOS 17 #199

Open sravman opened 7 months ago

sravman commented 7 months ago

I am receiving the following error in console when the audio player is interrupted (stopped) by another application or if playback is stopped and the webpage is out of focus for an extended period of time:

icecast-metadata-js: "Failed to start the AudioContext. WebAudio playback will not be possible." InvalidStateError: Failed to start the audio device

When attempting to restart the stream within the same session, no audio playback is heard. The only solution I have found currently is to force a reload of the webpage.

I was also able to reproduce this behavior using the demo

Device: iPhone 15 Pro OS: iOS 17.4.1 Method: Web Audio