7 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_
8 #define PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_
15 #include "packager/file/file.h"
16 #include "packager/file/file_closer.h"
17 #include "packager/media/formats/mp2t/continuity_counter.h"
24 class ProgramMapTableWriter;
30 explicit TsWriter(std::unique_ptr<ProgramMapTableWriter> pmt_writer);
37 virtual bool NewSegment(
const std::string& file_name);
51 virtual bool AddPesPacket(std::unique_ptr<PesPacket> pes_packet);
58 bool encrypted_ =
false;
63 std::unique_ptr<ProgramMapTableWriter> pmt_writer_;
65 std::unique_ptr<File, FileCloser> current_file_;
72 #endif // PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_