7 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_
8 #define PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_
15 #include "packager/media/file/file.h"
16 #include "packager/media/file/file_closer.h"
17 #include "packager/media/formats/mp2t/continuity_counter.h"
18 #include "packager/media/formats/mp2t/pes_packet.h"
19 #include "packager/media/formats/mp2t/program_map_table_writer.h"
44 virtual bool NewSegment(
const std::string& file_name);
58 virtual bool AddPesPacket(std::unique_ptr<PesPacket> pes_packet);
62 std::unique_ptr<ProgramMapTableWriter> table_writer);
66 bool encrypted_ =
false;
72 std::unique_ptr<ProgramMapTableWriter> pmt_writer_;
74 std::unique_ptr<File, FileCloser> current_file_;
83 #endif // PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_