abstract class AbsVideoPlayerWrapper : SxVideoPlayerWrapper
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 |
Duration of the current media playback in milliseconds. open var duration: Long |
durationObservable |
open val durationObservable: Observable<Long> |
error |
Any error produced by the video player. open var error: SxMediaError? |
errorObservable |
open val errorObservable: Observable<SxMediaError?> |
event |
Contains all relevant data from the player and will change when any of them changes. open var event: SxVideoPlayerEvent |
eventsObservable |
open val eventsObservable: Observable<SxVideoPlayerEvent> |
mediaUrl |
Url of the last loaded media file or open var mediaUrl: String? |
playbackState |
PlaybackState of the current media playback. open var playbackState: PlaybackState |
playbackStateObservable |
open val playbackStateObservable: Observable<PlaybackState> |
playWhenReady |
open var playWhenReady: Boolean |
playWhenReadyControllable |
open val playWhenReadyControllable: Observable<Boolean> |
playWhenReadyVeto |
var playWhenReadyVeto: Boolean |
position |
Position of the current media playback in milliseconds. open var position: Long |
positionObservable |
open val positionObservable: IObservable<Long> |
videoIndex |
Is incremented by one every time loadAd is called. open var videoIndex: Long |
videoIndexObservable |
open val videoIndexObservable: IObservable<Long> |
fireNewEvent |
open fun fireNewEvent(): 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(url: String): Unit open fun loadAd(url: String, closedCaptions: List<SxClosedCaption>): Unit |
update |
open fun update(): Unit |
ExoWrapper |
Implements the SxVideoPlayerWrapper for the SimpleExoPlayer. open class ExoWrapper : AbsVideoPlayerWrapper, IExoVideoLoader |