Added support for passing this.name and this.capturing to the monitor stream (zone.js.php)

This commit is contained in:
IgorA100
2025-04-10 15:51:09 +03:00
committed by GitHub
parent c688032658
commit 5d31c4e33a

View File

@@ -67,6 +67,7 @@ var monitorArea = <?php echo $monitor->ViewWidth() * $monitor->ViewHeight() ?>;
var monitorData = new Array();
monitorData[monitorData.length] = {
'id': <?php echo $monitor->Id() ?>,
'name': '<?php echo $monitor->Name() ?>',
'connKey': <?php echo $monitor->connKey() ?>,
'width': <?php echo $monitor->ViewWidth() ?>,
'height':<?php echo $monitor->ViewHeight() ?>,
@@ -77,6 +78,7 @@ monitorData[monitorData.length] = {
'url': '<?php echo $monitor->UrlToIndex( ZM_MIN_STREAMING_PORT ? ($monitor->Id() + ZM_MIN_STREAMING_PORT) : '') ?>',
'url_to_zms': '<?php echo $monitor->UrlToZMS( ZM_MIN_STREAMING_PORT ? ($monitor->Id() + ZM_MIN_STREAMING_PORT) : '') ?>',
'type': '<?php echo $monitor->Type() ?>',
'capturing': '<?php echo $monitor->Capturing() ?>',
'refresh': '<?php echo $monitor->Refresh() ?>',
'janus_pin': '<?php echo $monitor->Janus_Pin() ?>'
};