mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-29 19:22:02 -04:00
Added support for passing this.name and this.capturing to the monitor stream (zone.js.php)
This commit is contained in:
@@ -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() ?>'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user