mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
Add stop button to playerbar
This commit is contained in:
parent
fed96d1fce
commit
10d7664733
2 changed files with 12 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue