@UnstableApi
class CuesWithTiming


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

Summary

Public constructors

CuesWithTiming(
    cues: (Mutable)List<Cue!>!,
    startTimeUs: Long,
    durationUs: Long
)

Creates an instance.

Public properties

ImmutableList<Cue!>!

The cues to show on screen.

Long

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

Long

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

Long

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

Public constructors

CuesWithTiming

CuesWithTiming(
    cues: (Mutable)List<Cue!>!,
    startTimeUs: Long,
    durationUs: Long
)

Creates an instance.

Public properties

cues

val cuesImmutableList<Cue!>!

The cues to show on screen.

durationUs

val durationUsLong

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

val endTimeUsLong

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

val startTimeUsLong

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.