From cc5009c13e0c406f1601027d479c966069689914 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 12 Feb 2017 18:41:34 -0500 Subject: the playback rate will now be remembered #453 --- www/js/DataModel.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'www/js/DataModel.js') diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 28372d56..51773a9d 100755 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -148,7 +148,8 @@ angular.module('zmApp.controllers') 'fastLogin': true, 'followTimeLine': false, 'timelineScale': -1, - 'hideArchived': false + 'hideArchived': false, + 'videoPlaybackSpeed': 2, }; @@ -559,7 +560,7 @@ angular.module('zmApp.controllers') { //console.log ("************* AUGH"); - return $http({method:'GET', timeout:5000, url:urls[0].url}).then(function() + return $http({method:'GET', timeout:15000, url:urls[0].url}).then(function() { log("Success: reachability on " + urls[0].url); $ionicLoading.hide(); @@ -978,6 +979,13 @@ angular.module('zmApp.controllers') } + if (typeof loginData.videoPlaybackSpeed == 'undefined') + { + + loginData.videoPlaybackSpeed = 2; + + } + log("DataModel init recovered this loginData as " + JSON.stringify(loginData)); } else -- cgit v1.2.3