abstract class AbsVideoPlayerWrapper : IVideoPlayerWrapper
Implements Observables/Controllable and links them with their corresponding property. Also triggers new event when one of the properties changes.
<init> |
Implements Observables/Controllable and links them with their corresponding property. Also triggers new event when one of the properties changes. AbsVideoPlayerWrapper() |
duration |
open var duration: Long |
durationObservable |
Duration of the current media playback in milliseconds. open val durationObservable: Observable<Long> |
event |
open var event: SxVideoPlayerEvent |
eventsObservable |
open val eventsObservable: Observable<SxVideoPlayerEvent> |
mediaUri |
var mediaUri: Uri? |
playbackState |
open var playbackState: PlaybackState |
playbackStateObservable |
PlaybackState of the current media playback. open val playbackStateObservable: Observable<PlaybackState> |
playWhenReady |
open var playWhenReady: Boolean |
playWhenReadyControllable |
open val playWhenReadyControllable: Controllable<Boolean> |
position |
open var position: Long |
positionObservable |
Position of the current media playback in milliseconds. open val positionObservable: Observable<Long> |
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 |
update |
open fun update(): Unit |
ExoWrapper |
Implements the IVideoPlayerWrapper for the SimpleExoPlayer. open class ExoWrapper : AbsVideoPlayerWrapper, IExoVideoLoader |