Namespace: Zenterac

Zenterac

Classes

Controls
HtmlZone
Paypal
Playlist
Video
VideoGroup
VideoPlayer

Members

<static, constant> AddMode :String

Playlist Add Actions
Properties:
Name Type Default Description
APPEND String append Add playlist to the end of the current playlist (Default)
INSERT String insert Insert after current video, remaining unplayed videos will be played after the new playlist
REPLACE String replace Replace remaining unplayed videos with the new playlist, switch video after current video
NEW String new Replace whole playlist and switch NOW

<static> debug :Bool

Enable or disable debug logging

<static, constant> PlayerState :Number

VideoPlayer states
Properties:
Name Type Default Description
NONE Number 0 Player is uninitialised
LOADING Number 1 Player is sending playlist to server and/or loading data
READY Number 2 Player is ready to play videos
SWITCHING Number 3 Player is switching video
WAITING Number 4 Player is waiting for user action

<static, constant> PlayMode :String

Playlist Play Modes
Properties:
Name Type Default Description
NONE String Inherit from parent playlist, or play all videos (Default)
ALL String all Play all videos in the playlist
UNSEEN String unseen Play only videos not watched by the user
SEEN String seen RePlay only videos previously watched by the user
LOOP String loop Repeat the playlist until a new playlist is sent

<static, constant> PlayOrder :String

Playlist Play Modes
Properties:
Name Type Default Description
LIST String list Play videos in the sequence of the playlist (Default)
RANDOM String random Play each video once in any order

<static> server :String

Server hosting the videos

<static, constant> version :Number

Get the version of the API

<static, constant> VideoQuality :Number

Video Quality
Properties:
Name Type Default Description
AUTO Number 0
Q240 Number 240
Q360 Number 360
Q480 Number 480
Q720 Number 720
Q1080 Number 1080

Methods

<static> create(divID) → {Zenterac.VideoPlayer}

Main function to create a new video player
Parameters:
Name Type Description
divID string The ID of the div where the video will be displayed
Example
 Zenterac.create('demo', 'vframe');