From aec88217f55948fdb0da242c42ace38b93e511e9 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sat, 21 Apr 2018 16:04:07 -0400 Subject: ios play video inline hack --- www/js/EventModalCtrl.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'www/js/EventModalCtrl.js') 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)); -- cgit v1.2.3