7 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_ 8 #define PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_ 15 #include "packager/base/optional.h" 16 #include "packager/file/file.h" 17 #include "packager/file/file_closer.h" 18 #include "packager/media/formats/mp2t/continuity_counter.h" 25 class ProgramMapTableWriter;
31 explicit TsWriter(std::unique_ptr<ProgramMapTableWriter> pmt_writer);
38 virtual bool NewSegment(
const std::string& file_name);
52 virtual bool AddPesPacket(std::unique_ptr<PesPacket> pes_packet);
62 bool encrypted_ =
false;
67 std::unique_ptr<ProgramMapTableWriter> pmt_writer_;
69 std::unique_ptr<File, FileCloser> current_file_;
76 #endif // PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_
All the methods that are virtual are virtual for mocking.