Shaka Packager SDK
|
#include <muxer_factory.h>
Public Member Functions | |
MuxerFactory (const PackagingParams &packaging_params) | |
std::shared_ptr< Muxer > | CreateMuxer (MediaContainerName output_format, const StreamDescriptor &stream) |
void | OverrideClock (std::shared_ptr< Clock > clock) |
void | SetTsStreamOffset (int32_t offset_ms) |
To make it easier to create muxers, this factory allows for all configuration to be set at the factory level so that when a function needs a muxer, it can easily create one with local information.
Definition at line 29 of file muxer_factory.h.
std::shared_ptr< Muxer > shaka::media::MuxerFactory::CreateMuxer | ( | MediaContainerName | output_format, |
const StreamDescriptor & | stream | ||
) |
Create a new muxer using the factory's settings for the given stream.
Definition at line 27 of file muxer_factory.cc.
void shaka::media::MuxerFactory::OverrideClock | ( | std::shared_ptr< Clock > | clock | ) |
For testing, if you need to replace the clock that muxers work with this will replace the clock for all muxers created after this call.
Definition at line 81 of file muxer_factory.cc.