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 += '