File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 103103}
104104#Whether to show the controls button
105105$ hasPtzControls = false ;
106+ $ hasHLS = false ;
106107foreach ($ monitors as $ m ) {
107108 if (( ZM_OPT_CONTROL && $ m ->Controllable () && canView ('Control ' ) && $ m ->Type () != 'WebSite ' )) {
108109 //If there is control for at least one camera, then we display the block.
109110 $ hasPtzControls = true ;
111+ }
112+ if ( $ m ->RTSP2WebEnabled () and $ m ->RTSP2WebType == "HLS " ) {
113+ $ hasHLS = true ;
114+ }
115+ if ($ hasPtzControls && $ hasHLS ) {
110116 break ;
111117 }
112118}
@@ -494,7 +500,7 @@ class="table-sm table-borderless"
494500 </div>
495501</div>
496502<?php
497- if ( $ monitor -> RTSP2WebEnabled () and $ monitor -> RTSP2WebType == " HLS " ) {
503+ if ($ hasHLS ) {
498504?>
499505 <script src="<?php echo cache_bust ('js/hls.js ' ) ?> "></script>
500506<?php
You can’t perform that action at this time.
0 commit comments