interface IVideoPlayerWrapper : Releasable
Describes the outstream video player with support for observing the different properties of the player.
duration |
abstract val duration: Long |
durationObservable |
Duration of the current media playback in milliseconds. abstract val durationObservable: Observable<Long> |
event |
abstract val event: SxVideoPlayerEvent |
eventsObservable |
abstract val eventsObservable: Observable<SxVideoPlayerEvent> |
overlayContainer |
ViewGroup of the overlay container. Must be used to add any Views that should be shown above the media. abstract val overlayContainer: ViewGroup |
playbackState |
abstract val playbackState: PlaybackState |
playbackStateObservable |
PlaybackState of the current media playback. abstract val playbackStateObservable: Observable<PlaybackState> |
playWhenReady |
abstract var playWhenReady: Boolean |
playWhenReadyControllable |
abstract val playWhenReadyControllable: Controllable<Boolean> |
position |
abstract val position: Long |
positionObservable |
Position of the current media playback in milliseconds. abstract val positionObservable: Observable<Long> |
surfaceView |
Surface view of the video player. abstract val surfaceView: View |
applyLayoutConfiguration |
Is called at initialization to apply the layout configuration for the current video player. abstract 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. abstract fun loadAd(uri: Uri): Unit |
seek |
Is called when the current media should be sought by an offset. abstract fun seek(offset: Long): Unit |
AbsVideoPlayerWrapper |
Implements Observables/Controllable and links them with their corresponding property. Also triggers new event when one of the properties changes. abstract class AbsVideoPlayerWrapper : IVideoPlayerWrapper |
IInstreamVideoPlayerWrapper |
Describes the instream video player with support for observing the different properties of the player. interface IInstreamVideoPlayerWrapper : IVideoPlayerWrapper |