From 5d31c4e33a4280412388d518bce855e87bf48b13 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Thu, 10 Apr 2025 15:51:09 +0300 Subject: [PATCH] Added support for passing this.name and this.capturing to the monitor stream (zone.js.php) --- web/skins/classic/views/js/zone.js.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/skins/classic/views/js/zone.js.php b/web/skins/classic/views/js/zone.js.php index 74fa455f6..a75f3cc6f 100644 --- a/web/skins/classic/views/js/zone.js.php +++ b/web/skins/classic/views/js/zone.js.php @@ -67,6 +67,7 @@ var monitorArea = ViewWidth() * $monitor->ViewHeight() ?>; var monitorData = new Array(); monitorData[monitorData.length] = { 'id': Id() ?>, + 'name': 'Name() ?>', 'connKey': connKey() ?>, 'width': ViewWidth() ?>, 'height':ViewHeight() ?>, @@ -77,6 +78,7 @@ monitorData[monitorData.length] = { 'url': 'UrlToIndex( ZM_MIN_STREAMING_PORT ? ($monitor->Id() + ZM_MIN_STREAMING_PORT) : '') ?>', 'url_to_zms': 'UrlToZMS( ZM_MIN_STREAMING_PORT ? ($monitor->Id() + ZM_MIN_STREAMING_PORT) : '') ?>', 'type': 'Type() ?>', + 'capturing': 'Capturing() ?>', 'refresh': 'Refresh() ?>', 'janus_pin': 'Janus_Pin() ?>' };