7 #ifndef MEDIA_FORMATS_WEBM_MKV_WRITER_H_
8 #define MEDIA_FORMATS_WEBM_MKV_WRITER_H_
13 #include "packager/file/file_closer.h"
14 #include "packager/status.h"
15 #include "packager/third_party/libwebm/src/mkvmuxer.hpp"
30 Status
Open(
const std::string& name);
36 mkvmuxer::int32
Write(
const void* buf, mkvmuxer::uint32 len)
override;
39 mkvmuxer::int64
Position()
const override;
42 mkvmuxer::int32
Position(mkvmuxer::int64 position)
override;
51 mkvmuxer::int64 position)
override;
61 File* file() {
return file_.get(); }
64 std::unique_ptr<File, FileCloser> file_;
66 mkvmuxer::int64 position_;
75 #endif // MEDIA_FORMATS_WEBM_MKV_WRITER_H_