Skip to content

Commit

Permalink
Allow RTSPtoWeb streams for zone editing (ZoneMinder#3750)
Browse files Browse the repository at this point in the history
* Allow RTSPtoWeb streams for zone editing

* Fix quoting
  • Loading branch information
baudneo authored and Simpler1 committed Aug 25, 2023
1 parent ecc66ec commit f2c7494
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/skins/classic/views/js/zone.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
'width': <?php echo $monitor->ViewWidth() ?>,
'height':<?php echo $monitor->ViewHeight() ?>,
'janusEnabled':<?php echo $monitor->JanusEnabled() ?>,
'RTSP2WebEnabled': <?php echo $monitor->RTSP2WebEnabled() ?>,
'RTSP2WebType': '<?php echo $monitor->RTSP2WebType() ?>',
'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() ?>',
Expand Down
2 changes: 2 additions & 0 deletions web/skins/classic/views/js/zones.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
'width': <?php echo $monitor->ViewWidth() ?>,
'height':<?php echo $monitor->ViewHeight() ?>,
'janusEnabled':<?php echo $monitor->JanusEnabled() ?>,
'RTSP2WebEnabled': <?php echo $monitor->RTSP2WebEnabled() ?>,
'RTSP2WebType': '<?php echo $monitor->RTSP2WebType() ?>',
'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() ?>',
Expand Down

0 comments on commit f2c7494

Please sign in to comment.