initMedia

fun initMedia(video: ArcVideo?): ArcMediaPlayer

Initialize the player with a media object

Return

Media player instance

Parameters

video

ArcVideo object

Throws

ArcException

fun initMedia(video: ArcVideoStream?): ArcMediaPlayer

Initialize the player with a media object

Return

Media player instance

Parameters

video

ArcVideoStream object

Throws

ArcException

fun initMedia(arcVideoStreamVirtualChannel: ArcVideoStreamVirtualChannel): ArcMediaPlayer

Initialize the player with a virtual channel url

Return

Media player instance

Throws

ArcException

fun initMedia(video: ArcVideoStream?, adUrl: String?): ArcMediaPlayer

Initialize the player with a media object and an ad URL. This will play the video with the ad.

Return

Media player instance

Parameters

video

ArcVideoStream object

adUrl

ad url string

Throws

ArcException

fun initMedia(videos: List<ArcVideoStream?>?): ArcMediaPlayer

Initialize the player with a list of media objects. The objects will be played consecutively.

Return

Media player instance

Parameters

videos

List of ArcVideoStream objects

Throws

ArcException

fun initMedia(videos: List<ArcVideoStream?>?, adUrls: List<String?>?): ArcMediaPlayer

Initialize the player with a list of media objects and list of corresponding ad urls. Each ad URL will be associated with its corresponding video based upon order in the list. videos0 will associate with adUrls0, videos1 will be associated with adUrls1, etc.

Return

Media player instance

Parameters

videos

List of ArcVideoStream objects

adUrls

List of ad url strings

Throws

ArcException