Shaka Packager SDK
|
#include <ts_writer.h>
Public Member Functions | |
TsWriter (std::unique_ptr< ProgramMapTableWriter > pmt_writer) | |
virtual bool | NewSegment (BufferWriter *buffer) |
virtual void | SignalEncrypted () |
Signals the writer that the rest of the segments are encrypted. | |
virtual bool | AddPesPacket (std::unique_ptr< PesPacket > pes_packet, BufferWriter *buffer) |
This class takes PesPackets, encapsulates them into TS packets, and write the data to file. This also creates PSI from StreamInfo.
Definition at line 31 of file ts_writer.h.
|
virtual |
Add PesPacket to the instance. PesPacket might not be added to the buffer immediately.
pes_packet | gets added to the writer. |
buffer | to write pes packet. |
Definition at line 190 of file ts_writer.cc.
|
virtual |
This will fail if the current segment is not finalized.
buffer | to write segment data. |
Definition at line 169 of file ts_writer.cc.