DefaultPreloadManager.Status


public class DefaultPreloadManager.Status implements 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 = )
public annotation DefaultPreloadManager.Status.Stage

Stages that for the preload status.

Constants

static final int

The PreloadMediaSource is loaded to a specific position in microseconds.

static final int

The PreloadMediaSource is prepared.

static final int

The PreloadMediaSource has its Timeline refreshed.

Public fields

final int
final long

Public constructors

Status(@DefaultPreloadManager.Status.Stage int stage, long value)

Public methods

int

The stage of the preloading.

long

The associated value of the preloading stage.

Constants

STAGE_LOADED_TO_POSITION_MS

public static final int STAGE_LOADED_TO_POSITION_MS = 2

The PreloadMediaSource is loaded to a specific position in microseconds.

STAGE_SOURCE_PREPARED

public static final int STAGE_SOURCE_PREPARED = 1

The PreloadMediaSource is prepared.

STAGE_TIMELINE_REFRESHED

public static final int STAGE_TIMELINE_REFRESHED = 0

The PreloadMediaSource has its Timeline refreshed.

Public fields

stage

@DefaultPreloadManager.Status.Stage
public final int stage

value

public final long value

Public constructors

Status

public Status(@DefaultPreloadManager.Status.Stage int stage)

Status

public Status(@DefaultPreloadManager.Status.Stage int stage, long value)

Public methods

getStage

@DefaultPreloadManager.Status.Stage
public int getStage()

The stage of the preloading.

getValue

public long getValue()

The associated value of the preloading stage.