summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-05-04 09:43:30 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-05-04 09:43:30 -0400
commit172ae105c226457d59cded87183cc9ad03779225 (patch)
treefee1f855fe4b717235a5ee1be8b5a3b7099fc6f2 /www/js
parent1529282fefaf9465f1a3fca91fb19680758dec2c (diff)
#621 corrected wrong plugin - android was not working
Diffstat (limited to 'www/js')
-rw-r--r--www/js/EventCtrl.js8
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);