Instance Settings
A separate GSVideobar instance is created for each targetted division and has its own settings:
$(selector).gsvideobar({...});
closeText | cycleMode | cycleTime | horizontal | manyResults | master | player | search | statusArea | thumbnailSize
Name | Type | Default | Comments |
---|---|---|---|
horizontal | boolean | true | Controls the orientation of the videobar, being horizontal (true )
or vertical (false ). |
thumbnailSize | enumerated | this.thumbnailsMedium | Control the sizing of the video thumbnails. Use either ($.gsvideobar. )
thumbnailsSmall or thumbnailsMedium . |
player | string, object, element | '' | The jQuery selector, jQuery object, or individual element for the video player area (typically a division). If more than one element is selected, only the first is used. Leave as blank to create a floating video player that appears close to the selected video. |
master | string, object, element | '' | The jQuery selector, jQuery object, or individual element for the master videobar for which this videobar is the slave. The latter shares the video player area of the former. If more than one element is selected, only the first is used. |
closeText | string | '' | The text displayed at the top of the video player area to allow stopping of the current video. If left at blank it defaults to 'i'm done watching this'. |
search | string or string[] | 'jquery' | The single term to search for, or a list of terms to cycle through,
or a combination of the specialised YouTube search terms:
one of ($.gsvideobar. ) ytMostViewed , ytRecentlyFeatured , or
ytTopRated with one of ytToday , ytThisWeek ,
ytThisMonth , or ytAllTime . |
manyResults | boolean | false | Control how many results are returned, being few (false ) or many (true ). |
cycleTime | enumerated | this.cycleMedium | Specify the interval between cycles when multiple search terms are provided.
Use one of ($.gsvideobar. ) cycleVShort (3 seconds),
cycleShort (10 seconds), cycleMedium (15 seconds), or
cycleLong (30 seconds). |
cycleMode | enumerated | this.cycleRandom | Specify the order in which search terms are used when multiple are provided.
Use either ($.gsvideobar. ) cycleRandom or
cycleLinear . |
statusArea | string, object, element | '' | The jQuery selector, jQuery object, or individual element for the status area for the videobar. This area shows the list of search terms specified, indicates which one is currently being shown, and allows the user to select another one immediately. If more than one element is selected, only the first is used. |