diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-04-08 08:20:02 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-04-08 08:20:02 -0400 |
| commit | 2100647d8d981e9ff53238a6ccacd83f66714a3f (patch) | |
| tree | 59446ebd7c9cacacbaf0f4055e403e885f16dfff /www/js | |
| parent | fc96f6904c6581ffb21e47bce9120c3a83ac37e8 (diff) | |
#606 made simulstreaming optional
Diffstat (limited to 'www/js')
| -rwxr-xr-x | www/js/DataModel.js | 9 | ||||
| -rw-r--r-- | www/js/MontageCtrl.js | 6 |
2 files changed, 14 insertions, 1 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 393cfd89..f930be8d 100755 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -176,7 +176,8 @@ angular.module('zmApp.controllers') 'momentMonitorFilter': [], 'enableMomentSubMenu': true, 'momentArrangeBy': 'StartTime', - 'showLiveForInProgressEvents': true + 'showLiveForInProgressEvents': true, + 'disableSimulStreaming': false, }; @@ -843,6 +844,12 @@ angular.module('zmApp.controllers') loginData.defaultPushSound = false; } + + if (typeof loginData.disableSimulStreaming == 'undefined') { + + loginData.disableSimulStreaming = false; + } + if (typeof loginData.exitOnSleep == 'undefined') { debug("exitOnSleep does not exist. Setting to false"); loginData.exitOnSleep = false; diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 4bee1453..bac79b9f 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -1714,6 +1714,12 @@ angular.module('zmApp.controllers') simulStreaming = '1'; NVRDataModel.debug ("IOS detected, force enabling simulStreams"); } + + if (ld.disableSimulStreaming) { + simulStreaming = '0'; + NVRDataModel.debug ("Forcing simulStreams off as you have disabled it"); + + } }, function (err) { NVRDataModel.debug("******* SHOULD NEVER HAPPEN - MULTIPORT ERROR"); |
