File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ function MonitorStream(monitorData) {
522
522
}
523
523
console . debug ( `! ${ dateTimeToISOLocal ( new Date ( ) ) } Stream for ID=${ this . id } STOPPED` ) ;
524
524
//if ( 1 ) {
525
- if ( - 1 === this . player . indexOf ( 'rtsp2web' ) ) {
525
+ if ( - 1 === this . activePlayer . indexOf ( 'rtsp2web' ) ) {
526
526
if ( stream . src ) {
527
527
let src = stream . src ;
528
528
if ( - 1 === src . indexOf ( 'mode=' ) ) {
@@ -541,15 +541,15 @@ function MonitorStream(monitorData) {
541
541
this . statusCmdTimer = clearInterval ( this . statusCmdTimer ) ;
542
542
this . streamCmdTimer = clearInterval ( this . streamCmdTimer ) ;
543
543
this . started = false ;
544
- if ( - 1 !== this . player . indexOf ( 'go2rtc' ) ) {
544
+ if ( - 1 !== this . activePlayer . indexOf ( 'go2rtc' ) ) {
545
545
if ( ! ( stream . wsState === WebSocket . CLOSED && stream . pcState === WebSocket . CLOSED ) ) {
546
546
try {
547
547
stream . ondisconnect ( ) ;
548
548
} catch ( e ) {
549
549
console . warn ( e ) ;
550
550
}
551
551
}
552
- } else if ( - 1 !== this . player . indexOf ( 'rtsp2web' ) ) {
552
+ } else if ( - 1 !== this . activePlayer . indexOf ( 'rtsp2web' ) ) {
553
553
if ( this . webrtc ) {
554
554
if ( this . webrtc . close ) this . webrtc . close ( ) ;
555
555
stream . src = '' ;
@@ -563,7 +563,7 @@ function MonitorStream(monitorData) {
563
563
if ( this . RTSP2WebType == 'MSE' ) {
564
564
this . stopMse ( ) ;
565
565
}
566
- } else if ( - 1 !== this . player . indexOf ( 'janus' ) ) {
566
+ } else if ( - 1 !== this . activePlayer . indexOf ( 'janus' ) ) {
567
567
stream . src = '' ;
568
568
stream . srcObject = null ;
569
569
janus = null ;
Original file line number Diff line number Diff line change @@ -1310,8 +1310,7 @@ function panZoomEventPanzoomchange(event) {
1310
1310
}
1311
1311
1312
1312
function monitorChangeStreamChannel ( ) {
1313
- //if (currentMonitor.RTSP2WebEnabled) {
1314
- if ( ( monitorStream . player ) && ( - 1 !== monitorStream . player . indexOf ( 'go2rtc' ) || - 1 !== monitorStream . player . indexOf ( 'rtsp2web' ) ) ) {
1313
+ if ( ( monitorStream . activePlayer ) && ( - 1 !== monitorStream . activePlayer . indexOf ( 'go2rtc' ) || - 1 !== monitorStream . activePlayer . indexOf ( 'rtsp2web' ) ) ) {
1315
1314
streamCmdStop ( true ) ;
1316
1315
const streamChannel = $j ( '#streamChannel' ) . val ( ) ;
1317
1316
setCookie ( 'zmStreamChannel' , streamChannel ) ;
You can’t perform that action at this time.
0 commit comments