Methods
clearTracks(player)
Removes all remote text tracks from a player.
Parameters:
Name | Type | Description |
---|---|---|
player |
Player | The player to clear tracks on |
- Source:
playItem(player, item) → {Player}
Plays an item on a player's playlist.
Parameters:
Name | Type | Description |
---|---|---|
player |
Player | The player to play the item on |
item |
Object | A source from the playlist. |
- Source:
Returns:
The player that is now playing the item
- Type
- Player
plugin(list, item)
The video.js playlist plugin. Invokes the playlist-maker to create a playlist function on the specific player.
Parameters:
Name | Type | Description |
---|---|---|
list |
Array | a list of sources |
item |
number | The index to start at |
reset(player)
Resets the auto-advance behavior of a player.
Parameters:
Name | Type | Description |
---|---|---|
player |
Player | The player to reset the behavior on |
- Source:
setReset_(fn)
Used to change the reset function in this module at runtime This should only be used in tests.
Parameters:
Name | Type | Description |
---|---|---|
fn |
function | The function to se the reset to |
- Source:
setup(player, delay) → {undefined}
Sets up auto-advance behavior on a player.
Parameters:
Name | Type | Description |
---|---|---|
player |
Player | the current player |
delay |
number | The number of seconds to wait before each auto-advance. |
- Source:
Returns:
Used to short circuit function logic
- Type
- undefined
Events
playlistsorted
Triggered after the playlist is sorted internally.
Type:
- Object
- Source:
playlistsorted
Triggered after the playlist is sorted internally.
Type:
- Object
- Source:
playlistsorted
Triggered after the playlist is sorted internally.
Type:
- Object
- Source: