From 172ae105c226457d59cded87183cc9ad03779225 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 4 May 2018 09:43:30 -0400 Subject: #621 corrected wrong plugin - android was not working --- www/js/EventCtrl.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'www/js/EventCtrl.js') 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); -- cgit v1.2.3