Playlist is a listing of sources for playback (for example, a collection of series). It specified in code in file parameter.

var player = new Playerjs({

You can provide URL to playlist inside text file (file extension is .txt, check cross-domain policy). If you can't use extension txt, try to pass playlist by parameter pl instead file.

var player = new Playerjs({id:"player",file:""});


The object is enclosed in square brackets, inside the JSON collection  with the following parameters:

The playlist is specified in JSON format. It is enclosed in square brackets, a collection of records with parameters:

title text*
file file URL*
poster image URL
subtitle subtitle URL
folder folder object
id ID for file search

* обязательные параметры


Playlist can contain folders

   {"title":"Season 1","folder":
      {"title":"Serie 1/1","file":"URL"},
      {"title":"Serie 1/2","file":"URL"}
   {"title":"Season 2","folder":
      {"title":"Serie 2/1","file":"URL"},
      {"title":"Serie 2/2","file":"URL"}

By default, the first file opens in the playlist. If it is placed in a folder, it will also automatically open. To avoid this, enable the Open playlist option in the top level in the settings of the plugin Playlist in builder.

Search by id

If can specify each file in playlist with unique id and use search to launch the desired file by parameter plstart.

   {"title":"Serie 1","file":"URL","id":"s1"},
   {"title":"Serie 2","file":"URL","id":"s2"},
var player = new Playerjs({id:"player",file:"playlist.txt",plstart:"s2"});

Serie 2 starts after launching in this example.


You can setup design of playlist in builder Plugin / Playlist

To make the playlist appear in the builder, you need specify it in the Settings / File

You can access the playlist in DOM (for CSS or for removing to some outside container). If the player have ID player123, then the playlist have ID player123_playlist

The Art of Players
2018 © PlayerJS with ♥


Restore password
Sign up
Log in

Sign up free

Sign up
By signing up, you agree to Terms of Service
Login if you have an account

Order player

Your name
What project do you need a player for?
You agree to processing of this personal data.

Restore password

Forgot email? Contact us