Merge pull request #334 from adamantike/fix/mpris-sync-loop-mode

fix: Enable Loop mode sync for MPRIS
This commit is contained in:
Drew Weymouth
2024-02-24 11:04:57 -08:00
committed by GitHub
+5
View File
@@ -73,6 +73,11 @@ func NewMPRISHandler(playerName string, pm *PlaybackManager) *MPRISHandler {
m.evt.Player.OnVolume()
}
})
pm.OnLoopModeChange(func(loopMode LoopMode) {
if m.connErr == nil {
m.evt.Player.OnOptions()
}
})
emitPlayStatus := func() {
if m.connErr == nil {
m.evt.Player.OnPlayPause()