7 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_
8 #define PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_
14 #include "packager/base/memory/scoped_ptr.h"
15 #include "packager/media/base/media_stream.h"
16 #include "packager/media/file/file.h"
17 #include "packager/media/file/file_closer.h"
18 #include "packager/media/formats/mp2t/continuity_counter.h"
19 #include "packager/media/formats/mp2t/pes_packet.h"
20 #include "packager/media/formats/mp2t/program_map_table_writer.h"
42 virtual bool NewSegment(
const std::string& file_name);
56 virtual bool AddPesPacket(scoped_ptr<PesPacket> pes_packet);
60 scoped_ptr<ProgramMapTableWriter> table_writer);
64 bool encrypted_ =
false;
70 scoped_ptr<ProgramMapTableWriter> pmt_writer_;
72 scoped_ptr<File, FileCloser> current_file_;
81 #endif // PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_