Add stop button to playerbar

This commit is contained in:
jeffvli 2023-05-21 03:17:45 -07:00
parent fed96d1fce
commit 10d7664733
2 changed files with 12 additions and 1 deletions

View file

@ -116,7 +116,8 @@ export const useCenterControls = (args: { playersRef: any }) => {
mprisUpdateSong({ status: PlayerStatus.PAUSED });
if (isMpvPlayer) {
mpvPlayer.stop();
mpvPlayer.pause();
mpvPlayer.seekTo(0);
} else {
stopPlayback();
}