diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-09-07 16:53:49 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-09-07 16:53:49 -0400 |
| commit | d093aa7ff439c56a309e1778ecb66b7b13480c73 (patch) | |
| tree | bcad50ea4a9f01b7cf27ee8837aa975d87564858 /www/js/DataModel.js | |
| parent | 7805e0799dea82116fa39d4e5f4771111840142c (diff) | |
#321 - initial code - needs cleanup and better structure. Values are littered around at the moment
Former-commit-id: a5913367e5075e9b3e6eba774798d281decd4ffb
Diffstat (limited to 'www/js/DataModel.js')
| -rw-r--r-- | www/js/DataModel.js | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 43f350d6..11451916 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -59,7 +59,8 @@ angular.module('zmApp.controllers') 'streamingurl': "", 'maxFPS': "3", // image streaming FPS 'montageQuality': "50", // montage streaming quality in % - 'singleImageQuality': "100", // single streaming quality in % + 'singleImageQuality': "100", // event single streaming quality in % + 'monSingleImageQuality': "100", // live view quality 'montageHistoryQuality': "50", 'useSSL': false, // "1" if HTTPS 'keepAwake': true, // don't dim/dim during live view @@ -69,6 +70,7 @@ angular.module('zmApp.controllers') 'eventServerMonitors': '', // list of monitors to notify from ES 'eventServerInterval': '', // list of intervals for all monitors 'refreshSec': '2', // timer value for frame change in sec + 'refreshSecLowBW': 8, 'enableLogs': true, 'enableDebug': true, // if enabled with log messages with "debug" 'usePin': false, @@ -106,6 +108,7 @@ angular.module('zmApp.controllers') 'soundOnPush': true, 'cycleMonitors': false, 'cycleMonitorsInterval':10, // 10sec + 'enableLowBandwidth':false, @@ -688,6 +691,27 @@ angular.module('zmApp.controllers') } + if (typeof loginData.enableLowBandwidth == 'undefined') { + + loginData.enableLowBandwidth = false; + + } + $rootScope.runMode = loginData.enableLowBandwith? "low": "normal"; + + if (typeof loginData.refreshSecLowBW == 'undefined') { + + loginData.refreshSecLowBW = 8; + + } + + + + + if (typeof loginData.monSingleImageQuality == 'undefined') { + + loginData.monSingleImageQuality = 100; + + } log("DataModel init recovered this loginData as " + JSON.stringify(loginData)); } else { |
