addPlaylist Parameters
Branza Alexandru edited this page Jun 30, 2015
·
6 revisions
player.addPlaylist({
url: "http://archive.org/download/popeye_patriotic_popeye/popeye_patriotic_popeye.ogv",
vlcArgs: [...]
});
url
- string, video path or url
title
- string, set a custom title for the playlist item
aspectRatio
- string, set default aspect ratio (common values are "Default", "1:1", "4:3", "16:9", "16:10", "2.21:1", "2.35:1", "2.39:1", "5:4")
crop
- string, set default crop (common values are "Default", "16:10", "16:9", "1.85:1", "2.21:1", "2.35:1", "2.39:1", "5:3", "4:3", "5:4", "1:1")
zoom
- int/float, set default zoom, can be any positive number or float including 0 (zero hides the video feed completely)
vlcArgs
- array, passes arguments to VLC see list
subtitles
- object containing language and external subtitle link (supported formats: SRT, SUB, WebVTT)
Example for subtitles
parameter
player.addPlaylist({
url: "http://archive.org/download/CartoonClassics/Krazy_Kat_-_Keeping_Up_With_Krazy.mp4",
subtitles: {
"Hungarian": "http://my.subtitle.server/hungarian.srt",
"Polish": "http://my.subtitle.server/polish.sub"
}
});