Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 74268

Play html5 videos in IE11 when referrer header is set to no-referrer [closed]

$
0
0

Is there any way to play html5 videos in IE11 when referrer header is set to no-referrer ?
I've tried multiple html5 player in IE11 and all of them don't work if the referrer header is set to no-referrer.

Here is my code

<html>
<head>
<meta charset=utf-8 />
<title>Test</title>

  <meta name="referrer" content="no-referrer"/>

  <link href="https://unpkg.com/video.js/dist/video-js.css" rel="stylesheet">
  <script src="https://unpkg.com/video.js/dist/video.js"></script>
  <script src="https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js"></script>

</head>
<body>
  <video id="my_video_1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="268"
  data-setup='{}'>
  </video>

  <script>
    const player = videojs('my_video_1');
    player.src({
      src: 'http://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8',
      type: 'application/x-mpegURL'
    });
  </script>

</body>
</html>

Im getting error "Invalid property value" in the console.
If I remove the referrer meta tag, it works fine


Viewing all articles
Browse latest Browse all 74268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>