summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json4
-rw-r--r--www/js/EventModalCtrl.js19
2 files changed, 21 insertions, 2 deletions
diff --git a/package.json b/package.json
index 58456fcb..4f79fb2d 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "zmninjapro",
"description": "Home security mobile app for ZoneMinder",
- "version": "1.3.089",
+ "version":"1.3.089",
"displayName": "zmNinja",
"author": "Pliable Pixels",
"license": "custom see LICENSE.md",
@@ -213,4 +213,4 @@
]
}
}
-} \ No newline at end of file
+}
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js
index 34b41dc3..176a91cf 100644
--- a/www/js/EventModalCtrl.js
+++ b/www/js/EventModalCtrl.js
@@ -7,6 +7,8 @@
angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$rootScope', 'zm', 'NVR', '$ionicSideMenuDelegate', '$timeout', '$interval', '$ionicModal', '$ionicLoading', '$http', '$state', '$stateParams', '$ionicHistory', '$ionicScrollDelegate', '$q', '$sce', 'carouselUtils', '$ionicPopup', '$translate', '$filter', 'SecuredPopups', '$cordovaFile', function ($scope, $rootScope, zm, NVR, $ionicSideMenuDelegate, $timeout, $interval, $ionicModal, $ionicLoading, $http, $state, $stateParams, $ionicHistory, $ionicScrollDelegate, $q, $sce, carouselUtils, $ionicPopup, $translate, $filter, SecuredPopups, $cordovaFile) {
+ var videoPlaybarClicked = false;
+
var playerReady = false;
var streamState = {
SNAPSHOT: 1,
@@ -206,6 +208,11 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
NVR.debug ("Video state="+state);
playState = state;
$scope.lastVideoStateTime.time = moment();
+
+ if (!videoPlaybarClicked) {
+ videoPlaybarClicked = true;
+ $timeout(function () {videoPlaybarClicked = false;},1000);
+ }
};
$scope.onPlayerReady = function (api) {
@@ -256,6 +263,12 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
}
NVR.setLogin(ld);
+
+ if (!videoPlaybarClicked) {
+ videoPlaybarClicked = true;
+ $timeout(function () {videoPlaybarClicked = false;},1000);
+ }
+
};
$scope.onCanPlay = function () {
@@ -1085,6 +1098,12 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
});
$scope.showHideControls = function () {
+
+ if (videoPlaybarClicked) {
+ NVR.debug ("Not toggling screen controls as video controls were just used");
+ return;
+ }
+
$scope.displayControls = !$scope.displayControls;
NVR.debug ('display overlays:'+$scope.displayControls);
};