This repository was archived by the owner on Jun 14, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments