Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE HTML>
<html>
<head>
<title>
JW Player Reponsive Video
</title>
<script type="text/javascript" src="//cdn.jsdelivr.net/jwplayer/5.10/jwplayer.js">
</script>
<style type="text/css">
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}
#player {
height: 100%;
width: 100%;
padding: 0;
}
</style>
</head>
<body>
<div id="player">
</div>
<script type="text/javascript">
jwplayer("player").setup({
file: "http://testing.grappler.tk/files/2013/01/trailer_1080p.mp4",
image: "http://testing.grappler.tk/files/2013/01/trailer_1080p.jpg",
height: "100%",
width: "100%",
stretching: "exactfit",
flashplayer:"//cdn.jsdelivr.net/jwplayer/5.10/player.swf"
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment