An open API service indexing awesome lists of open source software.

https://github.com/ahmednuaman/vid

a jQuery plugin for loading video players from your favourite video sites
https://github.com/ahmednuaman/vid

Last synced: about 2 months ago
JSON representation

a jQuery plugin for loading video players from your favourite video sites

Awesome Lists containing this project

README

        

vid is a small and simple jQuery plugin that you can use to load in video players from your favourite video sites.

How to use:
Here's some example code:









<!--
$(document).ready( function()
{
var api = $( '#flash' ).vid({
type : 'youtube',
videoId : 'R7yfISlGLNU'
});
});
-->

It's that simple!

You can customise the settings, that's the hash you pass to vid():

// required
type : 'youtube', // String - defines the service, possible values are: youtube, vimeo, dailymotion, 1click2fame.
videoId : '4wGR4-SeuJ0', // String - defines the unique video identifier
// optional
autoPlay : false, // Boolean - defines whether to autoplay the video or not
loop : false, // Boolean - defines whether to loop the video or not
hq : true, // Boolean - defines whether to play the highest quality version, so HD or HQ, rather than SD
chromeless : false // Boolean - defines whether to use the chromless player for youtube only
resize : true, // Boolean - defines whether you want the player to resize dynamicly to its parent's size

It includes a copy of the jQuery SWFObject plugin by Jonathan Neal: http://jquery.thewikies.com/swfobject/