diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-11-14 09:54:46 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-11-14 09:54:46 -0500 |
| commit | ed485b7a29ceb8b59e36ed09f8373dcb88f79461 (patch) | |
| tree | 06da921491ca5fe05510f3140f830ada7958b9f2 /www | |
| parent | 754b54f8687c5e0e4b23f5365bedcfa4c55b019c (diff) | |
updates to remove wkwebview from android - causes issues displaying images with self signed
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/DataModel.js | 21 | ||||
| -rw-r--r-- | www/js/FirstUseCtrl.js | 6 | ||||
| -rw-r--r-- | www/js/LoginCtrl.js | 5 | ||||
| -rw-r--r-- | www/js/MenuController.js | 5 |
4 files changed, 35 insertions, 2 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 3e5f41c1..25a42c86 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -20,7 +20,7 @@ angular.module('zmApp.controllers') DO NOT TOUCH zmAppVersion It is changed by sync_version.sh */ - var zmAppVersion = "1.3.029"; + var zmAppVersion = "1.3.030"; var isBackground = false; var justResumed = false; var timeSinceResumed = -1; @@ -221,6 +221,11 @@ angular.module('zmApp.controllers') console.log('-->Error setting SSL permissive'); }); + if ($rootScope.platformOS == 'android') { + log (">>> Android: enabling inline image view for self signed certs"); + cordova.plugins.certificates.trustUnsecureCerts(true); + } + } else { log(">>>> Enabling strict SSL checking (turn off in Dev Options if you can't connect)"); @@ -2182,7 +2187,19 @@ angular.module('zmApp.controllers') // make them all show for now - + var recordingType = ''; + if (monitors[i].Monitor.SaveJPEGs>0) { + recordingType = $translate.instant('kImages'); + } + if (monitors[i].Monitor.VideoWriter > 0) { + if (recordingType.length) recordingType +=" + "; + recordingType = recordingType + $translate.instant('kVideo') + " ("; + recordingType = recordingType + ( monitors[i].Monitor.VideoWriter == 1 ? $translate.instant('kMonitorVideoEncode'): $translate.instant('kMonitorVideoPassThru')) + ")"; + } + + // in 1.30.4 these fields did not exist + + monitors[i].Monitor.recordingType = recordingType ? recordingType : $translate.instant ('kImages'); monitors[i].Monitor.listDisplay = 'show'; monitors[i].Monitor.isAlarmed = false; monitors[i].Monitor.connKey = (Math.floor((Math.random() * 999999) + 1)).toString(); diff --git a/www/js/FirstUseCtrl.js b/www/js/FirstUseCtrl.js index ca8ff14b..551a2bb3 100644 --- a/www/js/FirstUseCtrl.js +++ b/www/js/FirstUseCtrl.js @@ -23,6 +23,12 @@ angular.module('zmApp.controllers').controller('zmApp.FirstUseCtrl', ['$scope', }, function () { console.log('-->First Use -> Error setting SSL permissive'); }); + + if ($rootScope.platformOS == 'android') { + log (">>> Android: enabling inline image view for self signed certs"); + cordova.plugins.certificates.trustUnsecureCerts(true); + } + } diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js index 09a48ac2..b24514f6 100644 --- a/www/js/LoginCtrl.js +++ b/www/js/LoginCtrl.js @@ -607,6 +607,11 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r console.log('-->Error setting SSL permissive'); }); + if ($rootScope.platformOS == 'android') { + NVRDataModel.log (">>> Android: enabling inline image view for self signed certs"); + cordova.plugins.certificates.trustUnsecureCerts(true); + } + } else { NVRDataModel.log(">>>> Enabling strict SSL checking (turn off in Dev Options if you can't connect)"); diff --git a/www/js/MenuController.js b/www/js/MenuController.js index 39b6ce7f..69e26686 100644 --- a/www/js/MenuController.js +++ b/www/js/MenuController.js @@ -101,6 +101,11 @@ angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$io console.log('-->Error setting SSL permissive'); }); + if ($rootScope.platformOS == 'android') { + log (">>> Android: enabling inline image view for self signed certs"); + cordova.plugins.certificates.trustUnsecureCerts(true); + } + } else { NVRDataModel.log(">>>> Enabling strict SSL checking (turn off in Dev Options if you can't connect)"); |
