diff options
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/EventModalCtrl.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js index 9a73b58f..abdf5052 100644 --- a/www/js/EventModalCtrl.js +++ b/www/js/EventModalCtrl.js @@ -166,8 +166,11 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro $scope.onPlayerReady = function(handle) { + // we need this timeout to avoid load interrupting + // play -- I suppose its an angular digest foo thing NVRDataModel.debug ("Player is ready"); - handle.stop(); + $timeout (function() {handle.play();},400); + // window.stop(); }; @@ -1460,11 +1463,12 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro //console.log("************** VIDEO IS " + videoURL); - + $scope.videoObject = { config: { - autoPlay: false, - startTime: -1, + autoPlay: true, + + playsInline:true, sources: [ { src: $sce.trustAsResourceUrl(videoURL), |
