summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-11-04 16:43:09 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-11-04 16:43:09 -0400
commit40bb5b51986ab78f80980612029cb6443fbc0706 (patch)
treea0e5d37ab8929a3480001c7b5129b6115fa89349 /www/js
parent0d2378002fa40ce4f20f2c5ca3e002b708e5caf5 (diff)
automatic playback with timeout hack enabled for #359
Diffstat (limited to 'www/js')
-rw-r--r--www/js/EventModalCtrl.js12
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),