mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-06 18:49:59 +02:00
add "stopped" playback state and event handlers
This commit is contained in:
@@ -124,7 +124,12 @@ ipcMain.on('update-volume', (_event, volume) => {
|
||||
});
|
||||
|
||||
ipcMain.on('update-playback', (_event, status: PlayerStatus) => {
|
||||
mprisPlayer.playbackStatus = status === PlayerStatus.PLAYING ? 'Playing' : 'Paused';
|
||||
mprisPlayer.playbackStatus =
|
||||
status === PlayerStatus.PLAYING
|
||||
? 'Playing'
|
||||
: status === PlayerStatus.STOPPED
|
||||
? 'Stopped'
|
||||
: 'Paused';
|
||||
});
|
||||
|
||||
const REPEAT_TO_MPRIS: Record<PlayerRepeat, string> = {
|
||||
|
||||
Reference in New Issue
Block a user