File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 103
103
}
104
104
#Whether to show the controls button
105
105
$ hasPtzControls = false ;
106
- $ hasHLS = false ;
107
106
foreach ($ monitors as $ m ) {
108
107
if (( ZM_OPT_CONTROL && $ m ->Controllable () && canView ('Control ' ) && $ m ->Type () != 'WebSite ' )) {
109
108
//If there is control for at least one camera, then we display the block.
110
109
$ hasPtzControls = true ;
111
110
}
112
- if (($ m ->RTSP2WebEnabled () and $ m ->RTSP2WebType == 'HLS ' )) {
113
- $ hasHLS = true ;
114
- }
115
- if ($ hasPtzControls && $ hasHLS ) {
111
+ if ($ hasPtzControls ) {
116
112
break ;
117
113
}
118
114
}
@@ -534,13 +530,7 @@ class="table-sm table-borderless"
534
530
</div><!-- id="content" -->
535
531
</div>
536
532
</div>
537
- <?php
538
- if ($ hasHLS ) {
539
- ?>
540
533
<script src="<?php echo cache_bust ('js/hls-1.5.20/hls.min.js ' ) ?> "></script>
541
- <?php
542
- }
543
- ?>
544
534
<?php
545
535
} else {
546
536
echo "There are no monitors to display \n" ;
You can’t perform that action at this time.
0 commit comments