Monday, April 19, 2010

jQuery YouTube plugin demo

Long overdue demo for my jQuery YouTube plugin – jYouTube is now available here. The plugin can fetch and get you any YouTube video’s screenshot or thumbnail by its URL or video id.

Here is an example:

// Getting video screenshot by YouTube video ID
$.jYoutube('rSUfWXcNAOw');

// Returns video thumbnail by YouTube video URL
$.jYoutube('http://www.youtube.com/watch?v=rSUfWXcNAOw', 'small');

By default the plugin will return URL of the video screenshot (480×360). If you just need a video thumbnail (120×90) pass an optional second parameter "small".

See the plugin in action on jQuery YouTube demo page.

I hope you will find the plugin useful.

3 comments:

  1. Finally a simple and good working youtube thumbnail fetcher

    ReplyDelete
  2. The is an error in your code. After a thumb has been delivered and rendered on the page, a user should not be able to have the thumb duplicated. Meaning that he would not be able to get the thumb for an already displayed thumb

    ReplyDelete