Skip to content

Instantly share code, notes, and snippets.

@grappler
Last active March 5, 2024 09:32
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save grappler/4643649 to your computer and use it in GitHub Desktop.
Save grappler/4643649 to your computer and use it in GitHub Desktop.
<!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