7 #ifndef MEDIA_FORMATS_WEBVTT_WEBVTT_MEDIA_PARSER_H_
8 #define MEDIA_FORMATS_WEBVTT_WEBVTT_MEDIA_PARSER_H_
10 #include "packager/media/base/media_parser.h"
16 namespace edash_packager {
26 std::string identifier;
30 std::vector<std::string> payload;
31 std::vector<std::string> comment;
45 KeySource* decryption_key_source)
override;
46 void Flush()
override;
47 bool Parse(
const uint8_t* buf,
int size)
override;
51 enum WebVttReadingState {
54 kCueIdentifierOrTimingOrComment,
69 std::vector<std::string> header_;
74 WebVttReadingState state_;
84 #endif // MEDIA_FORMATS_WEBVTT_WEBVTT_MEDIA_PARSER_H_