You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
If someone would like to help out feel free. I don't have an iPhone to test and simulate this behavior with. On the simulated iPhone I use, the stream plays fine overnight with no problems.
I'm thinking if the audio context fails to start, maybe it could be removed from the audio element, reattached or recreated, and then restarted using the existing code. I should note, you have to click somewhere on the web page to start the audio context. It needs to be triggered directly from a user event.
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
The text was updated successfully, but these errors were encountered: