This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//try every way we can to get the object ref. The new SwfObject code uses 'object' even for Mozilla browsers... tricky | |
var elem=((navigator.userAgent.toLowerCase().indexOf('msie')>=0)?'OBJECT':'EMBED'); | |
var objRef; | |
try{ | |
objRef = document.getElementById(objID).parentNode.getElementsByTagName(elem)[0]; | |
}catch(e){} | |
if(!objRef) | |
objRef = document.getElementById(objID); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var urlParams = {}; | |
//Parse URL parameters | |
(function () { | |
var match, | |
pl = /\+/g, // Regex for replacing addition symbol with a space | |
search = /([^&=]+)=?([^&]*)/g, | |
decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); }, | |
query = window.location.search.substring(1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>PostMessage test</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
function postIt(type, message){ | |
var eventData = {type: type, message:message}; | |
parent.postMessage(eventData, '*'); //allow any domain to receive the message |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Http Live Streaming -- fetcher/downloader | |
# A simple script to download ts segments/m3u8 files from given url, including variant streams from master m3u8 | |
# require: python3 | |
import sys | |
import os | |
import urllib.request | |
TEST_URL = 'https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8' |