Merge pull request #4720 from IgorA100/patch-389827

Fix: When executing monitorChangeStreamChannel(), always write the new channel to the cookie and to monitorStream.currentChannelStream on Watch page
master
Isaac Connor 2026-03-23 06:40:35 -04:00 committed by GitHub
commit 7a4269cc7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -1351,10 +1351,11 @@ function panZoomEventPanzoomchange(event) {
}
function monitorChangeStreamChannel() {
const streamChannel = $j('#streamChannel').val();
monitorStream.currentChannelStream = streamChannel;
setCookie('zmStreamChannel', streamChannel);
if ((monitorStream.activePlayer) && (-1 !== monitorStream.activePlayer.indexOf('go2rtc') || -1 !== monitorStream.activePlayer.indexOf('rtsp2web'))) {
streamCmdStop(true);
const streamChannel = $j('#streamChannel').val();
setCookie('zmStreamChannel', streamChannel);
setTimeout(function() {
monitorStream.start(streamChannel);
onPlay();