Pause playlist instead of skipping file on audio driver lost
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
Expected behavior of the wanted feature
When the audio driver is lost:
[ao/pipewire] Error during playback: Broken pipe, connection error
[ao/pipewire] Stream disconnected, trying to reload...
[ao/pipewire] Could not connect to context '(null)': Host is down
[ao] Failed to initialize audio driver 'pipewire'
Could not open/initialize audio device -> no sound.
mpv skips to the next file after failing, which then fails again, which skips to the next file and so on. This behaviour is inconvenient since it messes up with my playlist when my audio driver is killed for any reason, I also have a notification sent to my desktop when changing files, when my audio driver dies, my desktop is filled with notifications.
Is it possible to just pause and try to periodically reconnect instead of skipping files when the connection with the audio driver is lost? through a flag perhaps?
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
Start by tracing the audio-driver failure path shown in the report and how it causes the playlist to advance. Determine the scope of a pause-and-reconnect option, including how periodic reconnection should behave; done means a lost driver does not skip files and playback can recover when the driver returns.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- audio-video-rtc
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100