Class: Playlist

Zenterac. Playlist

new Playlist()

A list of videos
Parameters:
Name Type Argument Description
... Zenterac.Video | Zenterac.Playlist | String <optional>
Init playlist with video list
Example
 var playlist = new Zenterac.Playlist("video1", new Zenterac.Video("video2", 10), "video3", playlist2);

Members

addMode :Zenterac.LoadAction

Describe the way the playlist should be uploaded

length :Number

The length of the playlist

playMode :Zenterac.PlayMode

Describe which videos will be played

playOrder :Zenterac.PlayOrder

Describe the order in which videos will be played

Methods

add(elem, start, duration)

Add a video, or another playlist to this playlist
Parameters:
Name Type Description
elem Zenterac.Video | Zenterac.Playlist | String | Object The element to add
start Number If elem is a string (videoID), start video at X seconds
duration Number If elem is a string (videoID), video will play for X seconds

at(index)

Get video at index
Parameters:
Name Type Description
index Number