Original Playlist Plugin by Nuevodevel does not require to load any additional css or javascript files. All you need is to setup playlist javascript array of media items.
Playlist single item required parameters are: media file URL and thumb image URL. Other parameters that you may include are: media title, media duration and sprite image to show thumbs over progressbar.
Media files can be of different type supported by HTML5 and videojs. You should only provide media mime-type along media src attribute. For standard MP4/WEBM media files you can include multiple source files URLs to support resolution switcher. Check playlist example used in video above.
You can insert playlist array directly on your website or load it from external javascript file. Once playlist ready you are fine to setup video element, initialize player, Nuevo plugin and playlist.
Code Source
<!--Setup video element-->
<video id="player_1" class="video-js vjs-fluid" controls preload playsinline webkit-playsinline poster="images/poster.jpg"></video>
<!--Initialize player with nuevo plugin and your playlist-->
<script>
var player = videojs('player_1');
player.nuevo({
//option_1: value
});
player.playlist(myplaylist);
</script>
Nuevo plugin includes several options for playlist and playlist UI. See Nuevo plugin setup and options description.
player.nuevo ({
playlistUI: true, // set false to hide playlist UI completely
playlistShow: true, // Set false to hide playlistUI when video player ready to show
playlistAutoHide: true // Set false to keep playlist UI visible when video starts playing
playlistNavigation: false // Set true to show playlist Next and Previous arrows
playlistRepeat: false // Set true to play first media file when last media file ended
});
Nuevo playlist features multiple public functions to manage playlist, insert or delete media items programmatically. All functions are described on Nuevodevel playlist SDK demo page.