From 48801216fe6ac4eaa14aa86a3f0129e17f131a6c Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Mon, 23 Feb 2026 13:58:48 +0300 Subject: [PATCH] Added "zmsState" and its processing (MonitorStream.js) --- web/js/MonitorStream.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/js/MonitorStream.js b/web/js/MonitorStream.js index 3a2fe3802..3b04dbc16 100644 --- a/web/js/MonitorStream.js +++ b/web/js/MonitorStream.js @@ -6,6 +6,7 @@ function MonitorStream(monitorData) { this.id = monitorData.id; this.name = monitorData.name; this.started = false; + this.zmsState = null; this.muted = (currentView == 'watch') ? !!getCookie('zmWatchMuted') : true; this.connKey = monitorData.connKey; this.genConnKey = function() { @@ -1538,6 +1539,13 @@ function MonitorStream(monitorData) { params.command = command; } this.streamCmdReq(params); + if (params.command == CMD_PAUSE) { + this.zmsState = 'paused'; + } else if (params.command == CMD_PLAY) { + this.zmsState = 'played'; + } else if (params.command == CMD_STOP || params.command == CMD_QUIT) { + this.zmsState = 'stoped'; + } }; this.alarmCommand = function(command) {