From 818ff90aff0a67d178317e2ab1d97fe1c0b330b5 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 5 Feb 2016 10:31:11 -0500 Subject: [PATCH] add credentials to media elements --- dashboard-ui/scripts/htmlmediarenderer.js | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/dashboard-ui/scripts/htmlmediarenderer.js b/dashboard-ui/scripts/htmlmediarenderer.js index 0a6074ddd4..c3d188bef4 100644 --- a/dashboard-ui/scripts/htmlmediarenderer.js +++ b/dashboard-ui/scripts/htmlmediarenderer.js @@ -178,7 +178,7 @@ html += ''; $(document.body).append(html); @@ -211,6 +211,14 @@ return MediaPlayer.canPlayHls() && !MediaPlayer.canPlayNativeHls(); } + function getCrossOriginValue(mediaSource) { + + if (mediaSource.EnableHttpCredentials) { + return 'use-credentials'; + } + return 'anonymous'; + } + function createVideoElement() { var html = ''; @@ -222,15 +230,15 @@ // Can't autoplay in these browsers so we need to use the full controls if (requiresNativeControls && AppInfo.isNativeApp && browserInfo.android) { - html += '