fix(mpris): update progress during playback polling

- Update MPRIS position every time get_playback_state is polled (~500ms)
- Update MPRIS position when seeking
- Add Default derive to PlaybackState for error fallback
- System media controls now show accurate playback progress
This commit is contained in:
vicrodh committed 2026-01-09 12:12:26 -06:00
1 parent 0075b5fc60
commit 8f4a47b2d8
2 files changed
+21 -4

No files matched your search

+1 -1
View File
@@ -442,7 +442,7 @@ impl Player {
}
/// Playback state snapshot
#[derive(Debug, Clone, serde::Serialize)]
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct PlaybackState {
pub is_playing: bool,
pub position: u64,