7 #ifndef PACKAGER_MEDIA_FORMATS_WEBVTT_WEBVTT_SEGMENTER_H_ 8 #define PACKAGER_MEDIA_FORMATS_WEBVTT_WEBVTT_SEGMENTER_H_ 15 #include "packager/media/base/media_handler.h" 16 #include "packager/status.h" 26 Status Process(std::unique_ptr<StreamData> stream_data)
override;
33 using WebVttSample = std::shared_ptr<const TextSample>;
34 using WebVttSegmentSamples = std::vector<WebVttSample>;
36 Status InitializeInternal()
override;
38 Status OnTextSample(std::shared_ptr<const TextSample> sample);
40 Status DispatchSegmentWithSamples(uint64_t segment,
41 const WebVttSegmentSamples& samples);
43 uint64_t segment_duration_ms_;
46 std::map<uint64_t, WebVttSegmentSamples> segment_map_;
47 uint64_t head_segment_ = 0;
53 #endif // PACKAGER_MEDIA_FORMATS_WEBVTT_WEBVTT_SEGMENTER_H_
All the methods that are virtual are virtual for mocking.