SubtitleParser.OutputOptions


class SubtitleParser.OutputOptions


Options to control the output behavior of SubtitleParser methods that emit their output incrementally using a Consumer provided by the caller.

Summary

Public functions

java-static SubtitleParser.OutputOptions!

Output all CuesWithTiming instances.

java-static SubtitleParser.OutputOptions!

Output CuesWithTiming where startTimeUs is at least startTimeUs, followed by the remaining CuesWithTiming instances.

java-static SubtitleParser.OutputOptions!
onlyCuesAfter(startTimeUs: Long)

Only output CuesWithTiming instances where startTimeUs is at least startTimeUs.

Public properties

Boolean

Whether to eventually emit all cues, or only those after startTimeUs.

Long

Cues after this time (inclusive) will be emitted first.

Public functions

allCues

java-static fun allCues(): SubtitleParser.OutputOptions!

Output all CuesWithTiming instances.

cuesAfterThenRemainingCuesBefore

java-static fun cuesAfterThenRemainingCuesBefore(startTimeUs: Long): SubtitleParser.OutputOptions!

Output CuesWithTiming where startTimeUs is at least startTimeUs, followed by the remaining CuesWithTiming instances.

Beyond this, the order in which CuesWithTiming instances are emitted is not defined.

onlyCuesAfter

java-static fun onlyCuesAfter(startTimeUs: Long): SubtitleParser.OutputOptions!

Only output CuesWithTiming instances where startTimeUs is at least startTimeUs.

The order in which CuesWithTiming instances are emitted is not defined.

Public properties

outputAllCues

val outputAllCuesBoolean

Whether to eventually emit all cues, or only those after startTimeUs. Ignored if startTimeUs is not set.

startTimeUs

val startTimeUsLong

Cues after this time (inclusive) will be emitted first. Cues before this time might be emitted later, depending on outputAllCues. Can be TIME_UNSET to emit all cues.