diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-11-22 18:20:39 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-11-22 18:20:39 -0400 |
| commit | 5eac484a44243b7d1a41036f4d25c4f23dcc6e76 (patch) | |
| tree | d54285d4b8e32f890a0def48fa8195459be14fed /www/js/EventModalCtrl.js | |
| parent | b9c58df13788fd7aec1a1e3a91d76beab5d8f01b (diff) | |
other video related updates
Diffstat (limited to 'www/js/EventModalCtrl.js')
| -rw-r--r-- | www/js/EventModalCtrl.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js index 70943e49..7a66a506 100644 --- a/www/js/EventModalCtrl.js +++ b/www/js/EventModalCtrl.js @@ -163,7 +163,7 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro // we need this timeout to avoid load interrupting // play -- I suppose its an angular digest foo thing - + console.log ("*********** ON PLAY READY"); handle = api; $ionicLoading.show( @@ -174,16 +174,18 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro NVRDataModel.debug("Player is ready"); $timeout(function() { - handle.setPlayback(2); - handle.play(); + handle.pause(); + handle.setPlayback(2); + handle.play(); - }, 400); + }, 300); // window.stop(); }; $scope.onCanPlay = function() { + console.log ("*********** CAN PLAY"); $ionicLoading.hide(); NVRDataModel.debug("This video can be played"); $scope.videoObject.config.cuepoints.points = []; |
