diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-07-24 16:26:49 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-07-24 16:26:49 -0400 |
| commit | c09dec1ac77704203d17a2ea00853c11648e4395 (patch) | |
| tree | 36b98b6dcd82a29d24659d47a61039c091a583da | |
| parent | e20cf11bf3d3c5d463eb20f566c46557ed6e065f (diff) | |
#675 play snapshot in event mode
| -rw-r--r-- | www/js/EventModalCtrl.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js index 9e8c8a1a..4d31091e 100644 --- a/www/js/EventModalCtrl.js +++ b/www/js/EventModalCtrl.js @@ -102,7 +102,8 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro RIGHT: 39, ESC: 27, - FITFILL_F: 70 + FITFILL_F: 70, + PLAY_SELECT:13 }; @@ -126,6 +127,14 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro else if (keyCode == keyCodes.FITFILL_F) { $scope.scaleImage(); } + else if (keyCode == keyCodes.PLAY_SELECT) { + if ($scope.isSnapShot() && !$scope.liveFeedMid) { + $scope.convertSnapShotToStream(); + } + else { + NVRDataModel.debug ("Not in snapshot mode, ignoring"); + } + } handled = true; return handled; |
