Skip to content

Instantly share code, notes, and snippets.

@gregworley
Created October 25, 2011 21:52
Show Gist options
  • Save gregworley/1314449 to your computer and use it in GitHub Desktop.
Save gregworley/1314449 to your computer and use it in GitHub Desktop.
jwplayer problem
<!doctype html>
<head> <meta charset="utf-8">
<title></title>
<link rel="sytlesheet" href="css/sytle.css">
<script type="text/javascript" src="http://worleyworks.com.s3.amazonaws.com/jwscript.js"></script>
</head>
<body>
<div id="container">Loading the player...</div>
<script type="text/javascript">
jwplayer("container").setup({
height: 272,
width: 480,
modes: [
{ type: "flash",
src: "http://worleyworks.com.s3.amazonaws.com/player.swf",
config: {
levels: [
{bitrate: 896, file: "songsForSeedsLastClass20101221_0896k480x272_15.mp4", width: 480, height:272},
{bitrate: 1000, file: "songsForSeedsLastClass20101221_1000K1280x720_15.mp4", width: 1280, height:720},
{bitrate: 2128, file: "songsForSeedsLastClass20101221_2128Ksrc_15.mp4", width:1920, height:1080}
],
provider: "rtmp",
streamer: "rtmp://somn669syprmc.cloudfront.net/cfx/st"
}
},
{ type: "html5",
config: {
height: 272,
width 480,
file: "http://d3lrs3s9gw6z85.cloudfront.net/songsForSeedsLastClass20101221_0896K480x272_15.mp4",
provider: "video"
} }
]
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment