File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -645,7 +645,7 @@ function MonitorStream(monitorData) {
645
645
} ;
646
646
647
647
this . pause = function ( ) {
648
- if ( this . RTSP2WebEnabled || this . Go2RTCEnabled ) {
648
+ if ( ( this . activePlayer ) && ( - 1 !== this . activePlayer . indexOf ( 'go2rtc' ) || - 1 !== this . activePlayer . indexOf ( 'rtsp2web' ) ) ) {
649
649
/* HLS does not have "src", WebRTC and MSE have "src" */
650
650
this . element . pause ( ) ;
651
651
this . statusCmdTimer = clearInterval ( this . statusCmdTimer ) ;
@@ -661,10 +661,10 @@ function MonitorStream(monitorData) {
661
661
662
662
this . play = function ( ) {
663
663
console . log ( 'play' ) ;
664
- if ( this . Go2RTCEnabled ) {
664
+ if ( ( this . activePlayer ) && ( - 1 !== this . activePlayer . indexOf ( 'go2rtc' ) ) ) {
665
665
this . element . play ( ) ; // go2rtc player will handle mute
666
666
this . statusCmdTimer = setInterval ( this . statusCmdQuery . bind ( this ) , statusRefreshTimeout ) ;
667
- } else if ( this . RTSP2WebEnabled ) {
667
+ } else if ( ( this . activePlayer ) && ( - 1 !== this . activePlayer . indexOf ( 'rtsp2web' ) ) ) {
668
668
/* HLS does not have "src", WebRTC and MSE have "src" */
669
669
this . element . play ( ) . catch ( ( ) => {
670
670
if ( ! this . element . muted ) {
You can’t perform that action at this time.
0 commit comments