summaryrefslogtreecommitdiff
path: root/www/js/EventModalCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/EventModalCtrl.js')
-rw-r--r--www/js/EventModalCtrl.js10
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 = [];