7 #ifndef PACKAGER_MEDIA_FORMATS_MP4_SINGLE_SEGMENT_SEGMENTER_H_
8 #define PACKAGER_MEDIA_FORMATS_MP4_SINGLE_SEGMENT_SEGMENTER_H_
10 #include <packager/file/file_closer.h>
11 #include <packager/macros/classes.h>
12 #include <packager/media/event/muxer_listener.h>
13 #include <packager/media/formats/mp4/segmenter.h>
32 std::unique_ptr<FileType> ftyp,
33 std::unique_ptr<Movie> moov);
38 bool GetInitRange(
size_t* offset,
size_t* size)
override;
40 std::vector<Range> GetSegmentRanges()
override;
45 Status DoInitialize()
override;
46 Status DoFinalize()
override;
47 Status DoFinalizeSegment(int64_t segment_number)
override;
49 std::unique_ptr<SegmentIndex> vod_sidx_;
50 std::string temp_file_name_;
51 std::unique_ptr<File, FileCloser> temp_file_;
All the methods that are virtual are virtual for mocking.