@UnstableApi
public class CuesWithTiming


A list of Cue instances with a start time and duration.

Summary

Public fields

final ImmutableList<Cue>

The cues to show on screen.

final long

The duration for which cues should be shown on screen, in microseconds, or TIME_UNSET if not known.

final long

The time at which cues should stop being shown on screen, in microseconds, or TIME_UNSET if not known.

final long

The time at which cues should be shown on screen, in microseconds, or TIME_UNSET if not known.

Public constructors

CuesWithTiming(List<Cue> cues, long startTimeUs, long durationUs)

Creates an instance.

Public fields

cues

public final ImmutableList<Cuecues

The cues to show on screen.

durationUs

public final long durationUs

The duration for which cues should be shown on screen, in microseconds, or TIME_UNSET if not known.

If cueReplacementBehavior is CUE_REPLACEMENT_BEHAVIOR_MERGE then cues from multiple instances will be shown on screen simultaneously if their start times and durations overlap.

TIME_UNSET is only permitted if the cueReplacementBehavior of the current track is CUE_REPLACEMENT_BEHAVIOR_REPLACE.

endTimeUs

public final long endTimeUs

The time at which cues should stop being shown on screen, in microseconds, or TIME_UNSET if not known.

The time base of this is the same as startTimeUs.

If cueReplacementBehavior is CUE_REPLACEMENT_BEHAVIOR_MERGE then cues from multiple instances will be shown on screen simultaneously if their start and times overlap.

TIME_UNSET is only permitted if the cueReplacementBehavior of the current track is CUE_REPLACEMENT_BEHAVIOR_REPLACE.

startTimeUs

public final long startTimeUs

The time at which cues should be shown on screen, in microseconds, or TIME_UNSET if not known.

The time base of this depends on the context from which this instance was obtained.

Public constructors

CuesWithTiming

public CuesWithTiming(List<Cue> cues, long startTimeUs, long durationUs)

Creates an instance.