docs/doc/reference/com/google/android/exoplayer2/text/webvtt/WebvttCueParser.html
Package com.google.android.exoplayer2.text.webvtt
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classWebvttCueParserextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
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)
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static Pattern | CUE_HEADER_PATTERN |
Deprecated.
|
Constructors | Constructor | Description |
| --- | --- |
| WebvttCueParser() |
Deprecated.
|
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. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final[Pattern](https://developer.android.com/reference/java/util/regex/Pattern.html "class or interface in java.util.regex")CUE_HEADER_PATTERN
Deprecated.
-
public WebvttCueParser()
Deprecated.
-
@Nullable
public static[WebvttCueInfo](WebvttCueInfo.html "class in com.google.android.exoplayer2.text.webvtt")parseCue([ParsableByteArray](../../util/ParsableByteArray.html "class in com.google.android.exoplayer2.util")webvttData,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[WebvttCssStyle](WebvttCssStyle.html "class in com.google.android.exoplayer2.text.webvtt")> 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.