Skip to content

Instantly share code, notes, and snippets.

@adylevy
Created December 30, 2016 17:59
Show Gist options
  • Save adylevy/43a89f63cad2e725dcf1370d07707e80 to your computer and use it in GitHub Desktop.
Save adylevy/43a89f63cad2e725dcf1370d07707e80 to your computer and use it in GitHub Desktop.
xdomain360.html file to be placed at /_aol/ folder publicly accessed by the domain of which a 360 file is served from (mp4 or m3u8) no need to place at ts domain for HLS
<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript"></script>
</head>
<body>
<video preload="auto"></video>
<canvas></canvas>
<script>
(function () {
var s = document.getElementsByTagName('script')[0];
var e = (location.search.match(/\be=([^&$]+)\b/) || [])[1];
var v = (location.search.match(/\bv=([^&$]+)\b/) || [])[1];
s.src = 'https://cdn-ssl.vidible.tv/'+e+'/player/js/'+v+'/xdomain360.js';
})();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment