From 20cdf05e6339b3853dc1d61db124a08856cf2258 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 28 Nov 2018 09:31:02 -0500 Subject: every time we reauth, lets change random value --- www/js/MontageCtrl.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'www/js') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 0e3d34d0..2e70b127 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -53,6 +53,9 @@ angular.module('zmApp.controllers') var as = $scope.$on("auth-success", function () { + NVRDataModel.debug ("Auth success, recomputing rand value..."); + randEachTime(); + /* var tnow = new Date(); var s = Math.round((tnow - timeInMontage) / 1000); NVRDataModel.debug ("Montage re-auth: time since we are here: " + s + @@ -1779,7 +1782,7 @@ angular.module('zmApp.controllers') "/nph-zms?mode=" + getMode() + "&monitor=" + monitor.Monitor.Id + "&scale=" + $scope.LoginData.montageQuality + - "&rand=" + randToAvoidCacheMem + + "&rand=" + randToAvoidCacheMem + monitor.Monitor.Id + "&buffer=1000" + $rootScope.authSession + appendConnKey(monitor.Monitor.connKey); -- cgit v1.2.3