Last active
October 1, 2015 10:06
-
-
Save smedegaard/8bf8e5d17577d3223083 to your computer and use it in GitHub Desktop.
LivePlayer example
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> | |
<title>LivePlayer example</title> | |
<!--[if lte IE 9]> | |
<script type="text/javascript" | |
src="https://rawgit.com/es-shims/es5-shim/master/es5-shim.js"></script> | |
<script type="text/javascript" | |
src="https://rawgit.com/aFarkas/html5shiv/master/dist/html5shiv.js"></script> | |
<script type="text/javascript" | |
src="https://rawgit.com/jonathantneal/2415137/raw/7ebad31fc9b5c0dfbf411c2db846ff7d5b05abba/addEventListener.js"></script> | |
<script type="text/javascript" | |
src="https://cdn.rawgit.com/eligrey/classList.js/master/classList.min.js"></script> | |
<![endif]--> | |
<script type="text/javascript" src="../liveplayer.js"></script> | |
<link rel="stylesheet" type="text/css" href="../style/liveplayer.css"> | |
<style type="text/css"> | |
html, body { | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
max-height: 100%; | |
overflow: hidden; | |
} | |
#liveplayer { | |
width: 100%; | |
height: 100%; | |
margin: 0 auto; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="liveplayer"> | |
<video> | |
<source | |
src="http://video.webmfiles.org/big-buck-bunny_trailer.webm" | |
type="video/webm"> | |
</source> | |
<source | |
src="http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4" | |
type="video/mp4" | |
/> | |
</video> | |
</div> | |
<script type="text/javascript"> | |
window.lpInstance = window.liveplayer('liveplayer',{ | |
videoHandlers: ['html5', 'flash'], | |
loglevel: 4, | |
autoplay: true, | |
mute: true | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment