7 #ifndef MEDIA_FORMATS_WEBVTT_WEBVTT_MEDIA_PARSER_H_
8 #define MEDIA_FORMATS_WEBVTT_WEBVTT_MEDIA_PARSER_H_
14 #include "packager/base/compiler_specific.h"
15 #include "packager/media/base/media_parser.h"
16 #include "packager/media/formats/webvtt/cue.h"
32 KeySource* decryption_key_source)
override;
33 bool Flush()
override WARN_UNUSED_RESULT;
34 bool Parse(
const uint8_t* buf,
int size)
override WARN_UNUSED_RESULT;
38 enum WebVttReadingState {
41 kCueIdentifierOrTimingOrComment,
56 std::vector<std::string> header_;
61 WebVttReadingState state_;
71 #endif // MEDIA_FORMATS_WEBVTT_WEBVTT_MEDIA_PARSER_H_