DefaultPreloadManager.Status


class DefaultPreloadManager.Status : TargetPreloadStatusControl.PreloadStatus


An implementation of TargetPreloadStatusControl.PreloadStatus that describes the preload status of the PreloadMediaSource.

Summary

Nested types

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
annotation DefaultPreloadManager.Status.Stage

Stages for the preload status.

Constants

const Int

The PreloadMediaSource is loaded for a specific duration from the default start position, in milliseconds.

const Int

The PreloadMediaSource has completed preparation.

const Int

The PreloadMediaSource has tracks selected.

Constants

STAGE_LOADED_FOR_DURATION_MS

const val STAGE_LOADED_FOR_DURATION_MS = 2: Int

The PreloadMediaSource is loaded for a specific duration from the default start position, in milliseconds.

STAGE_SOURCE_PREPARED

const val STAGE_SOURCE_PREPARED = 0: Int

The PreloadMediaSource has completed preparation.

STAGE_TRACKS_SELECTED

const val STAGE_TRACKS_SELECTED = 1: Int

The PreloadMediaSource has tracks selected.

Public constructors

Status

Status(@DefaultPreloadManager.Status.Stage stage: Int, value: Long)

Public properties

value

val valueLong