VideoOptions

data class VideoOptions(val videoId: String, val videoType: VideoType, val token: String? = null)

Description of the video to play.

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)

Constructors

Link copied to clipboard
constructor(videoId: String, token: String?)

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

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

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val token: String? = null
Link copied to clipboard
Link copied to clipboard