parse

open fun parse(stream: InputStream, encoding: String): WebVTTDocument

The main parser for WebVTT cue files pre KitKat.

Return

a populated WebVTTDocument with the caption texts.

Parameters

stream

the input stream containing caption data

encoding

the string encoding used, mostly UTF-8

Throws

Things to work on in the future: X-TIMESTAMP-MAP parsing (MPEGTS parsing for HLS syncing with PES timing data) Region and Styling parsing