summaryrefslogtreecommitdiff
path: root/www/js/MontageCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-12-07 14:24:18 -0500
committerPliable Pixels <pliablepixels@gmail.com>2018-12-07 14:24:18 -0500
commitf78c8d5484a7e03b2b6587e9547ccaea6e0fe490 (patch)
tree6d82a70dfa8312cfbd330fcffea26b97f5382ece /www/js/MontageCtrl.js
parentd36f0a793cef63c5ce239729fd31f83956407193 (diff)
#757 trap image load and re-generate connkey
Diffstat (limited to 'www/js/MontageCtrl.js')
-rw-r--r--www/js/MontageCtrl.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js
index 2e70b127..90d9ee82 100644
--- a/www/js/MontageCtrl.js
+++ b/www/js/MontageCtrl.js
@@ -1762,12 +1762,15 @@ angular.module('zmApp.controllers')
function getMode() {
var mode = (simulStreaming && currentStreamState != streamState.SNAPSHOT && currentStreamState != streamState.STOPPED) ? 'jpeg' : 'single';
- //console.log ("mode="+mode);
+ //console.log ("mode="+mode);
return mode;
}
-
+ $scope.processImageError = function(monitor) {
+ monitor.Monitor.connKey = (Math.floor((Math.random() * 999999) + 1)).toString();
+ NVRDataModel.debug ("Image load error for: "+monitor.Monitor.Id+" regenerated connKey is:"+monitor.Monitor.connKey);
+ };
$scope.constructStream = function (monitor) {