diff options
Diffstat (limited to 'www/js/MontageCtrl.js')
| -rw-r--r-- | www/js/MontageCtrl.js | 7 |
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) { |
