fix(player): Restart progress updates when player is ready#248
Merged
theovilardo merged 1 commit intomasterfrom Oct 13, 2025
Merged
fix(player): Restart progress updates when player is ready#248theovilardo merged 1 commit intomasterfrom
theovilardo merged 1 commit intomasterfrom
Conversation
The player's progress slider would get stuck at 0:00 when connecting to a Bluetooth device. This was because the progress update polling was not being restarted after the audio route change caused a player state transition. This change fixes the issue by calling `startProgressUpdates()` within the `onPlaybackStateChanged` listener whenever the `playbackState` becomes `Player.STATE_READY`. This ensures that the UI progress polling is reliably restarted after any event that makes the player ready, including connecting to a new audio output like a Bluetooth device.
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.
The player's progress slider would get stuck at 0:00 when connecting to a Bluetooth device. This was because the progress update polling was not being restarted after the audio route change caused a player state transition.
This change fixes the issue by calling
startProgressUpdates()within theonPlaybackStateChangedlistener whenever theplaybackStatebecomesPlayer.STATE_READY. This ensures that the UI progress polling is reliably restarted after any event that makes the player ready, including connecting to a new audio output like a Bluetooth device.