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, videoIndex: Long = -1L, lastError: SxMediaError? = null)

Properties

contentUrl

Url of the media file.

val contentUrl: String?

duration

Duration of the content media in milliseconds.

val duration: Long

lastError

val lastError: SxMediaError?

playbackState

Current state of the content media playback.

val playbackState: PlaybackState

position

Position of the content media in milliseconds.

val position: Long

videoIndex

val videoIndex: Long