Shaka Packager SDK
Public Member Functions | List of all members
shaka::media::MuxerFactory Class Reference

#include <muxer_factory.h>

Public Member Functions

 MuxerFactory (const PackagingParams &packaging_params)
 
std::shared_ptr< MuxerCreateMuxer (MediaContainerName output_format, const StreamDescriptor &stream)
 
void OverrideClock (std::shared_ptr< Clock > clock)
 
void SetTsStreamOffset (int32_t offset_ms)
 

Detailed Description

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.

Member Function Documentation

◆ CreateMuxer()

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.

◆ OverrideClock()

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.


The documentation for this class was generated from the following files: