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
- Host: GitHub
- URL: https://github.com/ahmednuaman/vid
- Owner: ahmednuaman
- Created: 2009-11-01T15:03:18.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-07-07T19:33:59.000Z (almost 15 years ago)
- Last Synced: 2025-03-24T10:56:33.160Z (2 months ago)
- Language: JavaScript
- Homepage: http://www.ahmednuaman.com/blog/tag/vid
- Size: 418 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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 sizeIt includes a copy of the jQuery SWFObject plugin by Jonathan Neal: http://jquery.thewikies.com/swfobject/