Skip to content

Instantly share code, notes, and snippets.

@olistik
Created July 8, 2011 15:03
Show Gist options
  • Select an option

  • Save olistik/1072032 to your computer and use it in GitHub Desktop.

Select an option

Save olistik/1072032 to your computer and use it in GitHub Desktop.
if (Modernizr.video.h264) {
videoId = "#asd";
video = VideoJS.setup(videoId);
video.play();
} else {
videoUrl = 'KimAronson-TwentySeconds59483.flv';
$f("player1", "flowplayer.swf", {
clip: {
url: videoUrl,
autoPlay: true,
autoBuffering: true,
clip: {
// load data from the server
onStart: function(clip) {
$("#info").load("get-data.php?index=" + clip.index);
}
}
},
plugins: {
controls: null
},
onLoad: function(){
alert("player loaded");
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment