These API calls are used for loading and retrieving the current playlist (of one or more items), as well as for navigating between playlist items. When accessed via the API, a playlist is an Array, containing one or more objects. Each of these objects contains the following:
Method | Description |
---|
.on('nextClick') | Fires after the next button (in the control bar) or the next up overlay is clicked. |
.on('playlist') | Fired when an entirely new playlist has been loaded into the player. |
.on('playlistItem') | Fired when the playlist index changes to a new playlist item. This event occurs before the player begins playing the new playlist item. |
.on('playlistComplete') | Fired when the player is done playing all items in the playlist. If the repeat option is set true, this will not be triggered. |