summaryrefslogtreecommitdiff
path: root/www/js/EventModalCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-04-21 16:04:07 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-04-21 16:04:07 -0400
commitaec88217f55948fdb0da242c42ace38b93e511e9 (patch)
tree89d40aeac849b93a54c540fb7510626eb7d5ab47 /www/js/EventModalCtrl.js
parent292dba10da1061784a198dd4ca6bc2ec791f78e7 (diff)
ios play video inline hack
Diffstat (limited to 'www/js/EventModalCtrl.js')
-rw-r--r--www/js/EventModalCtrl.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js
index 1e6a31ef..984f5742 100644
--- a/www/js/EventModalCtrl.js
+++ b/www/js/EventModalCtrl.js
@@ -158,6 +158,7 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
//console.log ("*********** ON PLAY READY");
NVRDataModel.debug ("On Play Ready invoked");
handle = api;
+ handle.mediaElement.attr("playsinline", "");
$ionicLoading.show(
{
@@ -1815,7 +1816,8 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
$scope.connKey = (Math.floor((Math.random() * 999999) + 1)).toString();
- currentStreamState = streamState.ACTIVE;
+ if (currentStreamState!=streamState.SNAPSHOT)
+ currentStreamState = streamState.ACTIVE;
//console.log("loginData is " + JSON.stringify($scope.loginData));