Package com.brightcove.player.captioning
Class WebVTTParser
java.lang.Object
com.brightcove.player.captioning.WebVTTParser
Implementation of a parser for WebVTT style captions. This parser is not complete, and is
loosely based off of the current WebVTT parser in the Google ExoPlayer project.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebVTTDocument
parse
(InputStream stream, String encoding) The main parser for WebVTT cue files pre KitKat.
-
Constructor Details
-
WebVTTParser
public WebVTTParser()
-
-
Method Details
-
parse
The main parser for WebVTT cue files pre KitKat.- Parameters:
stream
- the input stream containing caption dataencoding
- the string encoding used, mostly UTF-8- Returns:
- a populated WebVTTDocument with the caption texts.
- Throws:
IOException
- Things to work on in the future: X-TIMESTAMP-MAP parsing (MPEGTS parsing for HLS syncing with PES timing data) Region and Styling parsing
-