summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/EventCtrl.js4
-rw-r--r--www/js/EventModalCtrl.js2
2 files changed, 5 insertions, 1 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index 60987392..98557f7a 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -1,6 +1,6 @@
/* jshint -W041 */
/* jslint browser: true*/
-/* global saveAs, cordova,StatusBar,angular,console,moment, MobileAccessibility, gifshot */
+/* global saveAs, cordova,StatusBar,angular,console,moment, MobileAccessibility, gifshot, AnimatedGIF */
// This is the controller for Event view. StateParams is if I recall the monitor ID.
// This was before I got access to the new APIs. FIXME: Revisit this code to see what I am doing with it
@@ -961,6 +961,7 @@ angular.module('zmApp.controllers')
var ad = adjustAspect(e);
console.log("SAVING W=" + ad.w + " H=" + ad.h);
+ //AnimatedGIF.setRepeat(null);
gifshot.createGIF(
{
//'images': ['http://i.imgur.com/2OO33vX.jpg', 'http://i.imgur.com/qOwVaSN.png', 'http://i.imgur.com/Vo5mFZJ.gif'],
@@ -968,6 +969,7 @@ angular.module('zmApp.controllers')
'gifHeight': ad.h,
'images': imgs,
'interval':1,
+ //'loop':null,
'sampleInterval':20,
//'frameDur':5, // 1/2 a sec
'text': 'zmNinja',
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js
index 5773c5ef..62609e5a 100644
--- a/www/js/EventModalCtrl.js
+++ b/www/js/EventModalCtrl.js
@@ -163,7 +163,9 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
NVRDataModel.debug("Player is ready");
$timeout(function()
{
+ handle.setPlayback(2);
handle.play();
+
}, 400);
// window.stop();