Class WebvttCueParser

  • public final class WebvttCueParser
    extends Object
    Parser for WebVTT cues. (
    • Field Detail


        public static final Pattern CUE_HEADER_PATTERN
    • Constructor Detail

      • WebvttCueParser

        public WebvttCueParser()
    • Method Detail

      • parseCue

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