lib / tv.smartclip.smartclientandroid.lib.video_player / SxVideoPlayerEvent

SxVideoPlayerEvent

data class SxVideoPlayerEvent

Event contains all state relevant video player properties.

Constructors

<init>

Event contains all state relevant video player properties.

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

Properties

contentUrl

Url of the media file.

val contentUrl: String?

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