7 #ifndef PACKAGER_MEDIA_FORMATS_WEBVTT_WEBVTT_PARSER_H_ 8 #define PACKAGER_MEDIA_FORMATS_WEBVTT_WEBVTT_PARSER_H_ 14 #include "packager/media/formats/webvtt/text_readers.h" 15 #include "packager/media/origin/origin_handler.h" 23 WebVttParser(std::unique_ptr<FileReader> source,
const std::string& language);
26 void Cancel()
override;
32 Status InitializeInternal()
override;
33 bool ValidateOutputStreamIndex(
size_t stream_index)
const override;
36 bool ParseCueWithNoId(
const std::vector<std::string>& block);
37 bool ParseCueWithId(
const std::vector<std::string>& block);
38 Status ParseCue(
const std::string&
id,
39 const std::string* block,
42 Status DispatchTextStreamInfo();
45 std::string language_;
46 std::string style_region_config_;
47 bool stream_info_dispatched_ =
false;
48 bool keep_reading_ =
true;
54 #endif // MEDIA_FORMATS_WEBVTT_WEBVTT_PARSER_H_
All the methods that are virtual are virtual for mocking.