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