lib / tv.smartclip.smartclientandroid.lib.video_player / AbsVideoPlayerWrapper

AbsVideoPlayerWrapper

abstract class AbsVideoPlayerWrapper : SxVideoPlayerWrapper

Implements Observables/Controllable and links them with their corresponding property. Also triggers new event when one of the properties changes.

Constructors

<init>

Implements Observables/Controllable and links them with their corresponding property. Also triggers new event when one of the properties changes.

AbsVideoPlayerWrapper()

Properties

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>

mediaUrl

Url of the last loaded media file or null if no file was loaded yet.

open var mediaUrl: String?

playbackState

open var playbackState: PlaybackState

playbackStateObservable

PlaybackState of the current media playback.

open val playbackStateObservable: Observable<PlaybackState>

playWhenReady

open var playWhenReady: Boolean

playWhenReadyControllable

true for active playback.

open val playWhenReadyControllable: Controllable<Boolean>

playWhenReadyVeto

var playWhenReadyVeto: Boolean

position

open var position: Long

positionObservable

Position of the current media playback in milliseconds.

open val positionObservable: Observable<Long>

Functions

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

update

open fun update(): Unit

Inheritors

ExoWrapper

Implements the SxVideoPlayerWrapper for the SimpleExoPlayer.

open class ExoWrapper : AbsVideoPlayerWrapper, IExoVideoLoader