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:
1 parent
0075b5fc60
commit
8f4a47b2d8
2 files changed
+21
-4
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user