VideoProgressUpdate

class VideoProgressUpdate


Defines an update to the video's progress. For the cases where progress is requested but not yet available, VideoProgressUpdate#VIDEO_TIME_NOT_READY should be returned.

Summary

Constants

const VideoProgressUpdate!

Value to use for cases when progress is not yet defined, such as video initialization.

Public constructors

VideoProgressUpdate(currentTimeMs: Long, durationMs: Long)

Constructs a progress update object.

Public functions

Boolean
equals(obj: Any?)
Int

Public properties

Long
Long

Constants

VIDEO_TIME_NOT_READY

const val VIDEO_TIME_NOT_READYVideoProgressUpdate!

Value to use for cases when progress is not yet defined, such as video initialization.

Public constructors

VideoProgressUpdate

VideoProgressUpdate(currentTimeMs: Long, durationMs: Long)

Constructs a progress update object.

Parameters
currentTimeMs: Long

progress into video being played in milliseconds.

durationMs: Long

total video duration in milliseconds.

Public functions

equals

fun equals(obj: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

currentTimeMs

val currentTimeMsLong

durationMs

val durationMsLong