diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-07-26 20:18:21 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-07-26 20:18:21 -0400 |
| commit | ddfa531e00dfaf04da17cad391bd652a11e5af70 (patch) | |
| tree | 1c5ccf923e115ee0a7ff75fd1c23bfee7a6d7816 /www/js | |
| parent | 628e4f52203f2d6f8202515207b4801efec8e301 (diff) | |
made sure auto play of events matches FPS of event
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/EventCtrl.js | 9 |
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(); |
