Use monitorStream.play and pause instead of assuming zms

pull/4152/head
Isaac Connor 2024-09-24 17:29:21 -04:00
parent ab1b67893a
commit 689881d105
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ function onPause() {
function streamCmdPause(action) {
onPause();
if (action) {
monitorStream.streamCommand(CMD_PAUSE);
monitorStream.pause();
}
}
@ -198,7 +198,7 @@ function streamCmdPlay(action) {
if (action) {
if (monitorStream.started) {
//Stream was on pause
monitorStream.streamCommand(CMD_PLAY);
monitorStream.play();
} else {
//Stream has been stopped
monitorStream.start();