diff options
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/EventCtrl.js | 8 | ||||
| -rwxr-xr-x | www/js/app.js | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 4fc2e42d..5be5226a 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -810,6 +810,7 @@ angular.module('zmApp.controllers') }; + $scope.downloadFileToDevice = function(path, eid) { @@ -821,7 +822,14 @@ angular.module('zmApp.controllers') tp = cordova.file.dataDirectory + "temp-video.mp4"; var th = true; + var opt = {}; + + if ($rootScope.basicAuthHeader) { + opt.headers = {"Authorization": $rootScope.basicAuthHeader}; + NVRDataModel.debug ("download with auth options is:"+JSON.stringify(opt)); + } + //path = "http://techslides.com/demos/sample-videos/small.mp4"; NVRDataModel.debug("Saving temporary video to: " + tp); diff --git a/www/js/app.js b/www/js/app.js index 418bc93d..9a0b62a7 100755 --- a/www/js/app.js +++ b/www/js/app.js @@ -106,7 +106,7 @@ angular.module('zmApp', [ thumbWidth:200, alarmStatusTime: 10000, eventServerErrorDelay:5000, // time to wait till I report initial connect errors - zmVersionCheckNag: 30 * 24, // in hrs + zmVersionCheckNag: 60 * 24, // in hrs waitTimeTillResume: 5 // in sec, for ES error }) |
