Class WebvttCueParser


  • @Deprecated
    public final class WebvttCueParser
    extends Object
    Deprecated.
    com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    Parser for WebVTT cues. (https://w3c.github.io/webvtt/#cues)
    • Field Detail

      • CUE_HEADER_PATTERN

        public static final Pattern CUE_HEADER_PATTERN
        Deprecated.
    • Constructor Detail

      • WebvttCueParser

        public WebvttCueParser()
        Deprecated.
    • Method Detail

      • parseCue

        @Nullable
        public static WebvttCueInfo parseCue​(ParsableByteArray webvttData,
                                             List<WebvttCssStyle> styles)
        Deprecated.
        Parses the next valid WebVTT cue in a parsable array, including timestamps, settings and text.
        Parameters:
        webvttData - Parsable WebVTT file data.
        styles - List of styles defined by the CSS style blocks preceding the cues.
        Returns:
        The parsed cue info, or null if no valid cue was found.