7 #ifndef PACKAGER_MEDIA_FORMATS_WEBVTT_WEBVTT_MP4_CUE_HANDLER_H_
8 #define PACKAGER_MEDIA_FORMATS_WEBVTT_WEBVTT_MP4_CUE_HANDLER_H_
14 #include <packager/media/base/buffer_writer.h>
15 #include <packager/media/base/media_handler.h>
32 Status InitializeInternal()
override;
33 Status Process(std::unique_ptr<StreamData> stream_data)
override;
35 Status OnStreamInfo(std::unique_ptr<StreamData> stream_data);
36 Status OnCueEvent(std::unique_ptr<StreamData> stream_data);
37 Status OnSegmentInfo(std::unique_ptr<StreamData> stream_data);
38 Status OnTextSample(std::unique_ptr<StreamData> stream_data);
40 Status DispatchCurrentSegment(int64_t segment_start, int64_t segment_end);
41 Status MergeDispatchSamples(int64_t start_in_seconds,
42 int64_t end_in_seconds,
43 const std::list<const TextSample*>& state);
45 std::list<std::shared_ptr<const TextSample>> current_segment_;
All the methods that are virtual are virtual for mocking.