Repository navigation
Conversation
Resuming a paused track opens the output again, which fails when another program holds the device. play() returned the error to the dealer and API clients heard nothing: the Spotify app showed the track playing at 0:00. It now emits a playback_error with stage "resume"; the track stays paused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resuming a paused track opens the output again. When another program holds the device, that fails, and
play()returns the error to the dealer request, but API clients hear nothing: noplaying, noplayback_error. The Spotify app shows the track playing at 0:00 while nothing plays, and a client that manages the device for several players can't tell that go-librespot wanted it.What happens
Another player holds the ALSA device while go-librespot's session is paused. Pressing play in the Spotify app:
and no event on the API's websocket. A load that fails the same way already emits
playback_error(stageload); a resume didn't.Fix
play()emits aplayback_errorwith a new stage,resume, when seeking before play or starting the output fails. The track stays paused.API.mdlists the new stage.Tested
playback_errorwith stageresumeand the track's URI, and stays paused./player/resume, which plays.🤖 Generated with Claude Code