Methods
constructor(player, optionsopt)
Plugin class constructor, called by videojs on ready event.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
player |
Player | A Video.js player object. |
||
options |
Object |
<optional> |
{} | A plain object containing options for the plugin. |
onPlayerReady(player, optionsopt)
Function to invoke when the player is ready.
This is a great place for your plugin to initialize itself. When this function is called, the player will have its DOM and child components in place.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
player |
Player | A Video.js player object. |
||
options |
Object |
<optional> |
{} | A plain object containing options for the plugin. |
vttThumbnails(optionsopt)
A video.js plugin.
In the plugin function, the value of this
is a video.js Player
instance. You cannot rely on the player being in a "ready" state here,
depending on how the plugin is invoked. This may or may not be important
to you; if not, remove the wait for "ready"!
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options |
Object |
<optional> |
{} | An object of options left to the plugin author to define. |