Additional adjustments on mpv play
This commit is contained in:
parent
f09ad1da89
commit
e3fc99cf82
2 changed files with 1 additions and 2 deletions
|
@ -57,7 +57,6 @@ export const App = () => {
|
||||||
const initializeMpv = async () => {
|
const initializeMpv = async () => {
|
||||||
const isRunning: boolean | undefined = await mpvPlayer?.isRunning();
|
const isRunning: boolean | undefined = await mpvPlayer?.isRunning();
|
||||||
|
|
||||||
mpvPlayer?.pause();
|
|
||||||
mpvPlayer?.stop();
|
mpvPlayer?.stop();
|
||||||
|
|
||||||
if (!isRunning) {
|
if (!isRunning) {
|
||||||
|
|
|
@ -172,7 +172,7 @@ export const useHandlePlayQueueAdd = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playType === Play.NOW) {
|
if (playType === Play.NOW) {
|
||||||
mpvPlayer!.cleanup();
|
mpvPlayer!.pause();
|
||||||
mpvPlayer!.setQueue(playerData);
|
mpvPlayer!.setQueue(playerData);
|
||||||
mpvPlayer!.play();
|
mpvPlayer!.play();
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue