From 81be03e8259d967c468871b426c0ac1cd11657c2 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Mon, 30 Apr 2018 11:22:49 -0400 Subject: #618 video urls to add tokens --- www/js/EventCtrl.js | 4 +++- www/js/EventModalCtrl.js | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'www/js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index b158b915..5604ff8d 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -2478,9 +2478,11 @@ angular.module('zmApp.controllers') /* videoURL = event.Event.baseURL + "/events/" + event.Event.relativePath + event.Event.DefaultVideo;*/ videoURL = event.Event.baseURL + "/index.php?view=view_video&eid=" + event.Event.Id; + if ($rootScope.authSession != 'undefined') videoURL +=$rootScope.authSession; + if ($rootScope.basicAuthToken) videoURL = videoURL+"&basicauth="+$rootScope.basicAuthToken; - // console.log("************** VIDEO IS " + videoURL); + console.log("************** VIDEO IS " + videoURL); event.Event.video.config = { autoPlay: true, sources: [ diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js index 41fb2727..0f56b488 100644 --- a/www/js/EventModalCtrl.js +++ b/www/js/EventModalCtrl.js @@ -1919,6 +1919,9 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro else videoURL = event.Event.baseURL + "/index.php?view=view_video&eid=" + event.Event.Id; + if ($rootScope.authSession != 'undefined') videoURL +=$rootScope.authSession; + if ($rootScope.basicAuthToken) videoURL = videoURL+"&basicauth="+$rootScope.basicAuthToken; + // hack //videoURL = "http://static.videogular.com/assets/videos/videogular.mp4"; -- cgit v1.2.3