open class ExoWrapper : AbsVideoPlayerWrapper, IExoVideoLoader
Implements the IVideoPlayerWrapper for the SimpleExoPlayer.
<init> |
Implements the IVideoPlayerWrapper for the SimpleExoPlayer. ExoWrapper(playerHolder: ExoHolder) |
context |
val context: Context |
mainScope |
val mainScope: MainCoroutineScope |
overlayContainer |
ViewGroup of the overlay container. Must be used to add any Views that should be shown above the media. open val overlayContainer: ViewGroup |
surfaceView |
Surface view of the video player. open val surfaceView: View |
updateJob |
val updateJob: IntervalExecutor |
applyLayoutConfiguration |
Is called at initialization to apply the layout configuration for the current video player. open suspend fun applyLayoutConfiguration(configuration: SxLayoutConfiguration): Unit |
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 |
release |
Removes all external class references. Has to be called when the implementing class is not needed anymore. open fun release(): Unit |
seek |
Is called when the current media should be sought by an offset. open fun seek(offset: Long): Unit |
update |
open fun update(): Unit |
createDefaultPlayer |
fun createDefaultPlayer(playerView: PlayerView): ExoPlayer |
InstreamExoWrapper |
Implements the IInstreamVideoPlayerWrapper for the SimpleExoPlayer. open class InstreamExoWrapper : ExoWrapper, IInstreamVideoPlayerWrapper, IExoVideoSwitcher |