mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
Fix mpris playback status on play/pause
This commit is contained in:
@ -82,8 +82,11 @@ function registerMPRIS(win) {
|
||||
playPause()
|
||||
}
|
||||
});
|
||||
player.on("playpause", () => {
|
||||
player.playbackStatus = player.playbackStatus == 'Playing' ? "Paused" : "Playing";
|
||||
playPause();
|
||||
});
|
||||
|
||||
player.on("playpause", playPause);
|
||||
player.on("next", next);
|
||||
player.on("previous", previous);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user