lib / tv.smartclip.smartclientandroid.lib.video_player / IExoVideoSwitcher

IExoVideoSwitcher

interface IExoVideoSwitcher

Responsible to switch videos from content to advertising and back.

Properties

isShowingContent

abstract var isShowingContent: Boolean

Functions

showAd

abstract fun showAd(url: String, closedCaptions: List<SxClosedCaption> = emptyList(), onLoadFinished: (lastError: SxMediaError?) -> Unit = { }): Unit

showContent

abstract fun showContent(url: String): Unit

Inheritors

ExoVideoSwitcher

open class ExoVideoSwitcher : IExoVideoSwitcher, IExoVideoLoader

InstreamExoWrapper

Implements the SxInstreamVideoPlayerWrapper for the SimpleExoPlayer.

open class InstreamExoWrapper : ExoWrapper, SxInstreamVideoPlayerWrapper, IExoVideoSwitcher