open class InstreamExoWrapper : ExoWrapper, IInstreamVideoPlayerWrapper, IExoVideoSwitcher
Implements the IInstreamVideoPlayerWrapper for the SimpleExoPlayer.
<init> |
InstreamExoWrapper(playerView: PlayerView, contentUri: Uri, player: ExoPlayer = createDefaultPlayer(playerView)) |
loadAd |
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. open fun loadAd(uri: Uri): Unit |
loadContent |
Start or resume the content video playback. open suspend fun loadContent(): Unit |
sequenceFinished |
Whole sequence of content and advertising media has finished playback. open suspend fun sequenceFinished(): Unit |