Skip to content
This repository was archived by the owner on Jun 14, 2026. It is now read-only.

Commit 7b62910

Browse files
Fix montage stream URL construction to match MonitorModal behavior
Agent-Logs-Url: https://github.com/ZoneMinder/zmNinja/sessions/33c848bb-bbdf-4257-a7dd-22e8b3e3fb70 Co-authored-by: connortechnology <925519+connortechnology@users.noreply.github.com>
1 parent e37df86 commit 7b62910

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

www/js/MontageCtrl.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,18 +2183,14 @@ $scope.constructStream = function(monitor) {
21832183

21842184
if (currentStreamState == streamState.SNAPSHOT_LOWQUALITY) {
21852185
stream = monitor.Monitor.streamingURL +
2186-
NVR.getZmsBinary() + "?mode=single&scale=10&monitor="+ monitor.Monitor.Id +
2187-
"&rand=" + randToAvoidCacheMem + monitor.Monitor.Id;
2186+
NVR.getZmsBinary() + "?mode=single&scale=10&monitor="+ monitor.Monitor.Id;
21882187
console.log(stream);
21892188
} else {
21902189
mode = getMode();
21912190
stream = monitor.Monitor.streamingURL +
21922191
NVR.getZmsBinary() + "?mode=" + mode +
21932192
"&monitor=" + monitor.Monitor.Id +
2194-
"&scale=" + $scope.LoginData.montageQuality +
2195-
"&rand=" + randToAvoidCacheMem + monitor.Monitor.Id;
2196-
if (mode != 'single')
2197-
stream += appendConnKey(monitor.Monitor.connKey);
2193+
"&scale=" + $scope.LoginData.montageQuality;
21982194

21992195
var fps = NVR.getLogin().montageliveFPS;
22002196
if (fps) {
@@ -2203,6 +2199,12 @@ $scope.constructStream = function(monitor) {
22032199
}
22042200

22052201
stream += $rootScope.authSession;
2202+
if (currentStreamState != streamState.SNAPSHOT_LOWQUALITY) {
2203+
if (!monitor.Monitor.connKey)
2204+
NVR.regenConnKeys(monitor);
2205+
stream += appendConnKey(monitor.Monitor.connKey);
2206+
stream += "&rand=" + randToAvoidCacheMem + monitor.Monitor.Id;
2207+
}
22062208
stream += NVR.insertSpecialTokens();
22072209
NVR.debug(stream);
22082210
return stream;

0 commit comments

Comments
 (0)