7 #include "packager/media/formats/mp2t/ts_muxer.h"
9 namespace edash_packager {
13 TsMuxer::TsMuxer(
const MuxerOptions& muxer_options)
14 : Muxer(muxer_options), segmenter_(options()) {}
15 TsMuxer::~TsMuxer() {}
17 Status TsMuxer::Initialize() {
18 if (streams().size() > 1u)
19 return Status(error::MUXER_FAILURE,
"Cannot handle more than one streams.");
20 return segmenter_.
Initialize(*streams()[0]->info());
23 Status TsMuxer::Finalize() {
27 Status TsMuxer::DoAddSample(
const MediaStream* stream,
28 scoped_refptr<MediaSample> sample) {