7 #ifndef PACKAGER_MEDIA_FORMATS_MP4_MP4_MUXER_H_ 8 #define PACKAGER_MEDIA_FORMATS_MP4_MP4_MUXER_H_ 12 #include "packager/base/optional.h" 13 #include "packager/media/base/muxer.h" 18 class AudioStreamInfo;
21 class VideoStreamInfo;
27 struct ProtectionSchemeInfo;
40 Status InitializeMuxer()
override;
41 Status Finalize()
override;
43 Status FinalizeSegment(
size_t stream_id,
46 Status DelayInitializeMuxer();
63 base::Optional<Range> GetInitRangeStartAndEnd();
67 base::Optional<Range> GetIndexRangeStartAndEnd();
70 void FireOnMediaStartEvent();
71 void FireOnMediaEndEvent();
74 uint64_t IsoTimeNow();
77 bool to_be_initialized_ =
true;
78 base::Optional<int64_t> edit_list_offset_;
80 std::unique_ptr<Segmenter> segmenter_;
89 #endif // PACKAGER_MEDIA_FORMATS_MP4_MP4_MUXER_H_
All the methods that are virtual are virtual for mocking.