7 #ifndef PACKAGER_MEDIA_FORMATS_WEBVTT_WEBVTT_SAMPLE_CONVERTER_H_
8 #define PACKAGER_MEDIA_FORMATS_WEBVTT_WEBVTT_SAMPLE_CONVERTER_H_
13 #include "packager/media/base/status.h"
14 #include "packager/media/formats/mp4/box.h"
15 #include "packager/media/formats/mp4/box_definitions.h"
16 #include "packager/media/formats/webvtt/cue.h"
24 void AppendBoxToVector(mp4::Box* box, std::vector<uint8_t>* output_vector);
76 virtual std::shared_ptr<MediaSample>
PopSample();
85 bool HandleAllCuesButLatest();
96 bool SweepCues(uint64_t sweep_line, uint64_t sweep_stop_time);
100 std::list<Cue> cues_;
103 std::list<mp4::VTTAdditionalTextBox> additional_texts_;
106 std::list<std::shared_ptr<MediaSample>> ready_samples_;
111 uint64_t next_cue_start_time_;
119 #endif // PACKAGER_MEDIA_FORMATS_WEBVTT_WEBVTT_SAMPLE_CONVERTER_H_