7 #ifndef PACKAGER_MEDIA_CHUNKING_TEXT_CHUNKER_H_ 8 #define PACKAGER_MEDIA_CHUNKING_TEXT_CHUNKER_H_ 12 #include "packager/media/base/media_handler.h" 25 Status InitializeInternal()
override;
27 Status Process(std::unique_ptr<StreamData> stream_data)
override;
28 Status OnFlushRequest(
size_t input_stream_index)
override;
30 Status OnStreamInfo(std::shared_ptr<const StreamInfo> info);
31 Status OnCueEvent(std::shared_ptr<const CueEvent> cue);
32 Status OnTextSample(std::shared_ptr<const TextSample> sample);
34 Status EndSegment(int64_t segment_actual_end_ms);
35 void StartNewSegment(int64_t start_ms);
37 int64_t segment_duration_ms_;
42 int64_t segment_start_ms_;
43 int64_t segment_expected_end_ms_;
44 std::list<std::shared_ptr<const TextSample>> segment_samples_;
50 #endif // PACKAGER_MEDIA_CHUNKING_TEXT_CHUNKER_H_
All the methods that are virtual are virtual for mocking.