lib / tv.spotx.smartclientandroid.lib.video_player / SxVideoPlayerEvent

SxVideoPlayerEvent

data class SxVideoPlayerEvent

Event contains all state relevant video player properties.

Parameters

playbackState - Current state of the content media playback.

position - Position of the content media in milliseconds.

duration - Duration of the content media in milliseconds.

Constructors

<init>

Event contains all state relevant video player properties.

SxVideoPlayerEvent(playbackState: PlaybackState = PlaybackState.IDLE, position: Long = 0, duration: Long = -1, contentUri: Uri? = null)

Properties

contentUri

val contentUri: Uri?

duration

Duration of the content media in milliseconds.

val duration: Long

isValidPlaying

Returns true when playback is active and position as well as duration provide values greater or equal zero.

val isValidPlaying: Boolean

playbackState

Current state of the content media playback.

val playbackState: PlaybackState

position

Position of the content media in milliseconds.

val position: Long