Class WebvttCueParser
- java.lang.Object
-
- com.google.android.exoplayer2.text.webvtt.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 Summary
Fields Modifier and Type Field Description static Pattern
CUE_HEADER_PATTERN
Deprecated.
-
Constructor Summary
Constructors Constructor Description WebvttCueParser()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static WebvttCueInfo
parseCue(ParsableByteArray webvttData, List<WebvttCssStyle> styles)
Deprecated.Parses the next valid WebVTT cue in a parsable array, including timestamps, settings and text.
-
-
-
Field Detail
-
CUE_HEADER_PATTERN
public static final Pattern CUE_HEADER_PATTERN
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.
-
-