Audio stuck when switching networks
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 490
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named in the issue. Start by locating the audio playback event handling and the existing onError path, then check how a 4G-to-WiFi transition leaves playback stuck in PLAYING. Done means stalled playback can be detected through an onStalled event so callers can restart it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- audio-video-rtc, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100