PlaylistsPlaylist is a listing of sources for playback (for example, a collection of series). It specified in code in file parameter. var player = new Playerjs({ id:"player", file:[ {"title":"Title","file":"URL"}, {"title":"Title","file":"URL"} ] }); 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. From version 9.50 you can specify backup links for playlists pl.txt or pl2.txt var player = new Playerjs({id:"player",file:"http://site.com/playlist.txt"}); FormatThe 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* * required FoldersPlaylist 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 Search by idIf 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. DesignYou can setup design of playlist in builder To make the playlist appear in the builder, you need specify it in the 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 MemorizingHow to remember the played files in the playlist M3u supportThe player from version 9.21 supports playback of playlists with the m3u extension, if the links are full (start with http) and all cross-domain policy conditions are met.TAGS |