From 5eac484a44243b7d1a41036f4d25c4f23dcc6e76 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Tue, 22 Nov 2016 18:20:39 -0400 Subject: other video related updates --- www/js/EventModalCtrl.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'www/js/EventModalCtrl.js') 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 = []; -- cgit v1.2.3