diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-05-04 09:43:30 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-05-04 09:43:30 -0400 |
| commit | 172ae105c226457d59cded87183cc9ad03779225 (patch) | |
| tree | fee1f855fe4b717235a5ee1be8b5a3b7099fc6f2 /www/js | |
| parent | 1529282fefaf9465f1a3fca91fb19680758dec2c (diff) | |
#621 corrected wrong plugin - android was not working
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/EventCtrl.js | 8 |
1 files changed, 8 insertions, 0 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); |
