VideoPlaylist
Defined in: system/videoplaylist.ts:26
Special class for adding a video playlist to the stage.
Basic Usage
Section titled “Basic Usage”var XJS = require('xjs');var VideoPlaylist = XJS.VideoPlaylist;
var vids = new VideoPlaylist(['C:\\Users\\Public\\Music\\video1.mp4', 'C:\\Users\\Public\\Music\\video2.mp4']).addToScene();Implements
Section titled “Implements”Addable
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new VideoPlaylist(
items):VideoPlaylist
Defined in: system/videoplaylist.ts:37
param: (files: string[])
Creates a VideoPlaylist object for several video files.
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”VideoPlaylist
Methods
Section titled “Methods”addToScene()
Section titled “addToScene()”addToScene(
value?):Promise<any>
Defined in: system/videoplaylist.ts:145
param: (value?: number | Scene)
return: Promise<any>Adds the prepared video playlist to the current scene by default. Accepts an optional parameter value, which when supplied, points to the scene where item will be added instead. If ready config {listenToItemAdd: true} it returns item id, else returns boolean. This function is not available to sources.
Note: There is yet no way to detect error responses for this action.
Parameters
Section titled “Parameters”value?
Section titled “value?”number | Scene
Returns
Section titled “Returns”Promise<any>
Implementation of
Section titled “Implementation of”Addable.addToScene
toXML()
Section titled “toXML()”toXML():
Promise<XML>
Defined in: system/videoplaylist.ts:48
return: XML
Creates an XML object with the playlist properties. This method is used
internally for the addToScene method.
Returns
Section titled “Returns”Promise<XML>