Playlist functions available to use
We assume that videojs player, nuevo plugin and playlist are already defined and initialized. Variable name used to initialize video.js is "player" (can be any other name).
player.playlist.next(); Play next item
player.playlist.previous(); Play previous item
player.playlist.first(); Play first item
player.playlist.last(); Play last item
player.playlist.currentItem(id); Play item by playlist id
player.playlist.insert(mediaItem); Appen new media item to the end of the playlist
player.playlist.insertBefore(mediaItem, id); Insert new media item before existing media item Id
player.playlist.insertAfter(mediaItem, id); Insert new media item after existing media item Id
player.playlist.remove(id); Remove playlist item by Id
player.playlist.new(New_playlist); Load new playlist programmatically
Playlist media item definition
There are many ways to define playlist media The minimum required information is mthe edia source(s) url. However, you should also include the url of a playlist thumb image, media title and duration at minimum, e.g.