Playlist Siamo spiacenti, questa pagina è in attesa di traduzione in italiano 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({ 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 If the player shows a JSON error, then the document format is incorrect. In such cases, you can use any online JSON validator to fix it. 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 Playlist editorWe made a special editor for quickly creating playlists using the interface. You can download the result as a txt file, copy as a JSON and use it in the builder You can also use a php-script to generate playlists from the file structure. 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 Memorizing
|