VideoOptions

constructor(videoId: String, token: String?)

Creates a VideoOptions from a videoId and the private token. The VideoType is inferred from the video ID.

Parameters

videoId

the video ID of the video to play

token

the private video token (only needed for private video, set to null otherwise)


constructor(videoId: String, videoType: VideoType, token: String? = null)

Creates a VideoOptions from a videoId. an explicit VideoType and the private token.

Parameters

videoId

the video ID of the video to play

videoType

the VideoType of the video to play. Only VideoType.VOD is supported.

token

the private video token (only needed for private video, set to null otherwise)