diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2019-06-30 11:55:39 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2019-06-30 11:55:39 -0400 |
| commit | 44a2a2905fc0e4e51c12540757b058fe4bab01ef (patch) | |
| tree | daf565426af590d8a8e26c821d1a9e85ac2a212d /www/js/EventModalCtrl.js | |
| parent | 73aee14a9a7686ef909d2105afff56c8dc0a2b5f (diff) | |
#827 keep track of last time updated, don't close if <=300ms
Diffstat (limited to 'www/js/EventModalCtrl.js')
| -rw-r--r-- | www/js/EventModalCtrl.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js index e2f122f9..d5a410f9 100644 --- a/www/js/EventModalCtrl.js +++ b/www/js/EventModalCtrl.js @@ -194,6 +194,12 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro }; + + $scope.onPlayerState = function (state) { + // parent scope + $scope.lastVideoStateTime.time = moment(); + }; + $scope.onPlayerReady = function (api) { // we need this timeout to avoid load interrupting @@ -1055,6 +1061,8 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro $scope.alarm_images = []; $scope.snapshotFrameId = 1; currentStreamState = streamState.STOPPED; + + }); |
