|
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 30 of file muxer_factory.h.
| shaka::media::MuxerFactory::MuxerFactory | ( | const PackagingParams & | packaging_params | ) |
Definition at line 28 of file muxer_factory.cc.
| 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 34 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 88 of file muxer_factory.cc.
|
inline |
Definition at line 43 of file muxer_factory.h.