open class ExoWrapper : AbsVideoPlayerWrapper, IExoVideoLoader
Implements the SxVideoPlayerWrapper for the SimpleExoPlayer.
videoLoader
- Implementation of IExoVideoLoader.
<init> |
Implements the SxVideoPlayerWrapper for the SimpleExoPlayer. ExoWrapper(videoLoader: IExoVideoLoader) |
context |
val context: Context |
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 |
buildPlaybackState |
fun buildPlaybackState(playWhenReady: Boolean, isPlaying: Boolean, playbackState: Int): PlaybackState |
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(url: String, closedCaptions: List<SxClosedCaption>): 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(context: Context): ExoPlayer |
InstreamExoWrapper |
Implements the SxInstreamVideoPlayerWrapper for the SimpleExoPlayer. open class InstreamExoWrapper : ExoWrapper, SxInstreamVideoPlayerWrapper, IExoVideoSwitcher |