A jQuery plugin that sets a division to show a Google Search Videobar. If you find this plugin useful please vote for it on the jQuery site.
This page provides a documentation reference for working with the plugin v1.0.2. See a demonstration of the Google Search Videobar plugin and download the code from there.
For more detail on the Google Search Videobar functionality, see the Google API documentation.
A separate GSVideobar instance is created for each targetted division and has its own settings:
$('divs').gsvideobar({...});
closeText | cycleMode | cycleTime | horizontal | manyResults | master | player | search | statusArea | thumbnailSize
| Name | Comments |
|---|---|
| cycleVShort, cycleShort, cycleMedium, cycleLong | Possible values for the cycleTime setting. |
| cycleRandom, cycleLinear | Possible values for the cycleMode setting. |
| thumbnailsSmall, thumbNailsMedium | Possible values for the thumbnailSize setting. |
| ytMostViewed, ytRecentlyFeatured, ytTopRated | Possible values for the search setting. |
| ytToday, ytThisWeek, ytThisMonth, ytAllTime | Possible additional values for the search setting
when appended to the values above. |
| Signature | Returns | Comments |
|---|---|---|
| $.gsvideobar.setDefaults(settings) | GSVideobar object | Update the default instance settings to use with all GSVideobar instances. |
| $.gsvideobar.youTube(channel) | string | Create a search term for a YouTube channel.channel (string) is the channel to find. |
| $(div).gsvideobar('change', settings) | jQuery object | Update the settings for the GSVideobar instance(s) attached to the given div(s). |
| $(div).gsvideobar('destroy') | jQuery object | Remove the GSVideobar functionality from the given div(s). |
| $(div).gsvideobar('search', terms) | jQuery object | Execute a new search for the GSVideobar.terms (string) the keywords to search for. |
Contact Keith Wood at kbwood{at}iinet.com.au with comments or suggestions.