Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (52 sloc) 1.79 KB

Playlist component for video.js 3 player

For more info about video.js go to


Add playlist.js and playlist.css to your head tag, just after videojs:

  <link href="" rel="stylesheet">
  <script src=""></script>

  <link href="design/playlist.css" rel="stylesheet" type="text/css">
  <script src="src/playlist.js"></script>

Embedding playlist

Playlist should be embedded as a video's data-setup attribute e.g

<video data-setup='{
   "playlist": [


API includes basic features like play/pause/next and prev methods: e.g

You can refer to n video by calling method: e.g

Browser compatibility

Tested on Chrome16/FF6/Safari5.1/iphone4S/ipad and asus tablet (android 3.2)


  • loop option
  • random play option


If you have any issues or ideas about improvements, just let me know.

Something went wrong with that request. Please try again.