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"
27 std::string identifier;
31 std::vector<std::string> payload;
32 std::vector<std::string> comment;
46 KeySource* decryption_key_source)
override;
47 bool Flush()
override WARN_UNUSED_RESULT;
48 bool Parse(
const uint8_t* buf,
int size)
override WARN_UNUSED_RESULT;
52 enum WebVttReadingState {
55 kCueIdentifierOrTimingOrComment,
70 std::vector<std::string> header_;
75 WebVttReadingState state_;
85 #endif // MEDIA_FORMATS_WEBVTT_WEBVTT_MEDIA_PARSER_H_