Additional adjustments on mpv play

This commit is contained in:
jeffvli 2023-08-07 14:48:02 -07:00
parent f09ad1da89
commit e3fc99cf82
2 changed files with 1 additions and 2 deletions

View file

@ -57,7 +57,6 @@ export const App = () => {
const initializeMpv = async () => {
const isRunning: boolean | undefined = await mpvPlayer?.isRunning();
mpvPlayer?.pause();
mpvPlayer?.stop();
if (!isRunning) {

View file

@ -172,7 +172,7 @@ export const useHandlePlayQueueAdd = () => {
}
if (playType === Play.NOW) {
mpvPlayer!.cleanup();
mpvPlayer!.pause();
mpvPlayer!.setQueue(playerData);
mpvPlayer!.play();
}