summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPliablePixels <pliablepixels@gmail.com>2015-07-26 20:18:21 -0400
committerPliablePixels <pliablepixels@gmail.com>2015-07-26 20:18:21 -0400
commitddfa531e00dfaf04da17cad391bd652a11e5af70 (patch)
tree1c5ccf923e115ee0a7ff75fd1c23bfee7a6d7816 /www/js
parent628e4f52203f2d6f8202515207b4801efec8e301 (diff)
made sure auto play of events matches FPS of event
Diffstat (limited to 'www/js')
-rw-r--r--www/js/EventCtrl.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index 93fdba0e..2371983d 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -160,6 +160,15 @@ angular.module('zmApp.controllers')
// not explictly handling error --> I have a default "No events found" message
// displayed in the template if events list is null
+ $scope.calcMsTimer = function(frames,len)
+ {
+ var myframes, mylen;
+ myframes = parseFloat(frames);
+ mylen = parseFloat(len);
+ // console.log ("frames " + myframes + "length " + mylen);
+ // console.log ("*** MS COUNT " + (1000.0/(myframes/mylen)));
+ return (Math.round(1000/(myframes/mylen)));
+ };
$scope.openMenu = function () {
$ionicSideMenuDelegate.toggleLeft();