Skip to content

Instantly share code, notes, and snippets.

@bobpoekert
Created October 27, 2010 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobpoekert/648354 to your computer and use it in GitHub Desktop.
Save bobpoekert/648354 to your computer and use it in GitHub Desktop.
Justin.tv Javascript Api Example
player = jtv_api.new_player(document.getElementById('video_container'), {
width:'100%',
height:'100%',
custom:true,
consumer_key:'yjw6J88EzQ2kCj8NhBXA',
events : {
stream_lost : play_random,
video_not_found : play_random,
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment