lib / tv.smartclip.smartclientandroid.lib.video_player / SxVideoPlayerWrapper / loadAd

loadAd

abstract fun loadAd(url: String): Unit
Deprecated: Override loadAd call with closedCaptions parameter instead.

Is called when a new advertising media should be loaded. Playback should be starting immediately after load. Seeking of the media should not be possible.

Parameters

url - Media Url.

abstract fun loadAd(url: String, closedCaptions: List<SxClosedCaption> = emptyList()): Unit

Is called when a new advertising media should be loaded. Playback should be starting immediately after load. Seeking of the media should not be possible.

Parameters

url - Media Url.

closedCaptions - List of SxClosedCaptions for the given url.