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

Commit 75d5321

Browse files
Fix rand param placement: snapshot/single-frame need it, MJPEG streams do not
Agent-Logs-Url: https://github.com/ZoneMinder/zmNinja/sessions/7978d388-c848-49eb-a6fe-a40eca5e1605 Co-authored-by: connortechnology <925519+connortechnology@users.noreply.github.com>
1 parent 7b62910 commit 75d5321

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

www/js/MontageCtrl.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,7 +2183,8 @@ $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;
2186+
NVR.getZmsBinary() + "?mode=single&scale=10&monitor="+ monitor.Monitor.Id +
2187+
"&rand=" + randToAvoidCacheMem + monitor.Monitor.Id;
21872188
console.log(stream);
21882189
} else {
21892190
mode = getMode();
@@ -2203,7 +2204,8 @@ $scope.constructStream = function(monitor) {
22032204
if (!monitor.Monitor.connKey)
22042205
NVR.regenConnKeys(monitor);
22052206
stream += appendConnKey(monitor.Monitor.connKey);
2206-
stream += "&rand=" + randToAvoidCacheMem + monitor.Monitor.Id;
2207+
if (mode != 'jpeg')
2208+
stream += "&rand=" + randToAvoidCacheMem + monitor.Monitor.Id;
22072209
}
22082210
stream += NVR.insertSpecialTokens();
22092211
NVR.debug(stream);

0 commit comments

Comments
 (0)