7 #ifndef PACKAGER_MEDIA_BASE_TEXT_MUXER_H_
8 #define PACKAGER_MEDIA_BASE_TEXT_MUXER_H_
10 #include <packager/media/base/muxer.h>
11 #include <packager/media/base/text_sample.h>
12 #include <packager/media/base/text_stream_info.h>
27 Status InitializeMuxer()
override;
28 Status Finalize()
override;
29 Status AddTextSample(
size_t stream_id,
const TextSample& sample)
override;
30 Status FinalizeSegment(
size_t stream_id,
34 virtual Status AddTextSampleInternal(
const TextSample& sample) = 0;
37 virtual Status WriteToFile(
const std::string& filename, uint64_t* size) = 0;
39 int64_t total_duration_ms_ = 0;
40 int64_t last_cue_ms_ = 0;
All the methods that are virtual are virtual for mocking.