pub fn parse_webvtt(text: &str) -> Result<ImportedCaptions, CaptionImportError>Expand description
Reads WebVTT (.vtt) text. NOTE, STYLE, and REGION blocks are
ignored.
ยงErrors
Returns CaptionImportError::MissingWebVttHeader unless the text
begins with WEBVTT, and CaptionImportError::FileTooLarge or
CaptionImportError::TooManyCues for a file past the import limits.