Skip to content

fix(player): Restart progress updates when player is ready#248

Merged
theovilardo merged 1 commit intomasterfrom
bugfix/bluetooth-slider-stuck
Oct 13, 2025
Merged

fix(player): Restart progress updates when player is ready#248
theovilardo merged 1 commit intomasterfrom
bugfix/bluetooth-slider-stuck

Conversation

@theovilardo
Copy link
Owner

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.

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.
@theovilardo theovilardo merged commit fd4a0e1 into master Oct 13, 2025
@theovilardo theovilardo deleted the bugfix/bluetooth-slider-stuck branch October 16, 2025 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant