Created
January 26, 2015 19:59
-
-
Save findmory/7c81732f9633c12d4b04 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> | |
</head> | |
<body> | |
<div id="uplynk"></div> | |
<script> | |
var flashvars = { | |
defaultURL: "http://content.uplynk.com/9294c6ee59304d2f965553598ee7c8a7.m3u8", | |
autoPlay : "false", | |
isLive : "true", | |
uplynkPluginURL : "swf/latest_upLynkOsmfPlugin.swf", | |
useStageVideo : "true", | |
defaultVolume: "0.5", | |
allowfullscreen: "true" | |
}; | |
var params = { | |
allowfullscreen: "true" | |
}; | |
var attributes = { | |
id: "mycontent", | |
name: "mycontent" | |
}; | |
swfobject.embedSWF("swf/latest_upLynkPlayer.swf", "uplynk", "640", "360", "11.0.0","expressInstall.swf", flashvars, params, attributes); | |
var player; | |
function resume(){ | |
player = document.getElementById('mycontent'); | |
player.resume(); | |
} | |
function pause(){ | |
player = document.getElementById('mycontent'); | |
player.pause(); | |
} | |
function playurl(){ | |
player = document.getElementById('mycontent'); | |
var url = "http://content.uplynk.com/channel/xxxx.m3u8"; | |
player.playURL(url); | |
} | |
function isPaused(){ | |
player = document.getElementById('mycontent'); | |
var status = player.isPaused(); | |
alert(status); | |
} | |
function enableCaptions(){ | |
player = document.getElementById('mycontent'); | |
player.enableCaptions(true); | |
} | |
</script> | |
</body> | |
<style> | |
body { padding: 50px 100px; width: 700px; font: 13px/20px Arial; background: #FFF; } | |
a, h1, h2 { color: #369; } | |
h2 { margin-top: 50px; } | |
pre { font-size: 12px; background:#E5F3C8; padding:5px 10px; border: 1px solid #D3EAA4; } | |
dt { font-weight: bold; } | |
</style> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment