LegacySubtitleUtil


@UnstableApi
public class LegacySubtitleUtil


Utility methods for working with legacy Subtitle objects.

Summary

Public methods

static void
toCuesWithTiming(
    Subtitle subtitle,
    SubtitleParser.OutputOptions outputOptions,
    Consumer<CuesWithTiming> output
)

Converts a Subtitle to a list of CuesWithTiming representing it, emitted to output.

Public methods

toCuesWithTiming

public static void toCuesWithTiming(
    Subtitle subtitle,
    SubtitleParser.OutputOptions outputOptions,
    Consumer<CuesWithTiming> output
)

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.