From ddfa531e00dfaf04da17cad391bd652a11e5af70 Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Sun, 26 Jul 2015 20:18:21 -0400 Subject: made sure auto play of events matches FPS of event --- www/js/EventCtrl.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'www/js/EventCtrl.js') 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(); -- cgit v1.2.3