new VideoGroup()
A group of videos
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
... |
Zenterac.Video |
<optional> |
Init playlist with video list |
Example
var playlist = new Zenterac.VideoGroup(video1, video2, video3);
Methods
-
add(video)
-
Add a video to the group
Parameters:
Name Type Description video
Zenterac.Video The video to add -
at(index) → {Zenterac.Video|Zenterac.VideoGroup}
-
Get video at index
Parameters:
Name Type Description index
Number -
contains(video) → {Bool}
-
Check if video is in group
Parameters:
Name Type Description video
Zenterac.Video | String Video or id to find -
find(video, findInSubGroup) → {Number}
-
Check if video or group is in group, returns index in group
Parameters:
Name Type Argument Description video
Zenterac.Video | Zenterac.VideoGroup | String Video, group or id to find findInSubGroup
Bool <optional>
If true, search inside sub-groups -
getName() → {String}
-
Convert VideoGroup to a string
-
getPlaylist(options) → {Zenterac.Playlist}
-
Create a playlist from the group
Parameters:
Name Type Description options
Object Playlist options -
size()
-
Get group size