Skip to content

Commit 7dee8e6

Browse files
Merge pull request #4413 from IgorA100/patch-970619
Fix: When executing the "streamCmdReq" command, check "activePlayer" instead of "RTSP2WebEnabled" and "Go2RTCEnabled" (MonitorStream.js)
2 parents 2ba4234 + d4ba17c commit 7dee8e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/js/MonitorStream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ function MonitorStream(monitorData) {
12581258
$j.ajaxSetup({timeout: AJAX_TIMEOUT});
12591259

12601260
this.streamCmdReq = function(streamCmdParms) {
1261-
if (!(streamCmdParms.command == CMD_STOP && (this.RTSP2WebEnabled || this.Go2RTCEnabled))) {
1261+
if (!(streamCmdParms.command == CMD_STOP && ((-1 !== this.activePlayer.indexOf('go2rtc')) || (-1 !== this.activePlayer.indexOf('rtsp2web'))))) {
12621262
//Otherwise, there will be errors in the console "Socket ... does not exist" when quickly switching stop->start and we also do not need to replace SRC in getStreamCmdResponse
12631263
this.ajaxQueue = jQuery.ajaxQueue({
12641264
url: this.url + (auth_relay?'?'+auth_relay:''),

0 commit comments

Comments
 (0)