LegacySubtitleUtil
Artifact: androidx.media3:media3-extractor
@UnstableApi
class LegacySubtitleUtil
Utility methods for working with legacy Subtitle objects.
Summary
Public functions |
|
|---|---|
java-static Unit |
toCuesWithTiming(Converts a |
Public functions
toCuesWithTiming
java-static fun toCuesWithTiming(
subtitle: Subtitle!,
outputOptions: SubtitleParser.OutputOptions!,
output: Consumer<CuesWithTiming!>!
): Unit
Converts a Subtitle to a list of CuesWithTiming representing it, emitted to output.
This may only be called with empty Subtitle instances, or those where the first event is non-empty and the last event is an empty cue list.