#include <muxer.h>
|
const MuxerOptions & | options () const |
|
KeySource * | encryption_key_source () |
|
uint32_t | max_sd_pixels () const |
|
double | clear_lead_in_seconds () const |
|
double | crypto_period_duration_in_seconds () const |
|
MuxerListener * | muxer_listener () |
|
ProgressListener * | progress_listener () |
|
base::Clock * | clock () |
|
FourCC | protection_scheme () const |
|
Muxer is responsible for taking elementary stream samples and producing media containers. An optional KeySource can be provided to Muxer to generate encrypted outputs.
Definition at line 33 of file muxer.h.
void shaka::media::Muxer::Cancel |
( |
| ) |
|
Cancel a muxing job in progress. Will cause Run to exit with an error status of type CANCELLED.
Definition at line 84 of file muxer.cc.
void shaka::media::Muxer::set_clock |
( |
base::Clock * |
clock | ) |
|
|
inline |
Inject clock, mainly used for testing. The injected clock will be used to generate the creation time-stamp and modification time-stamp of the muxer output. If no clock is injected, the code uses base::Time::Now() to generate the time-stamps.
- Parameters
-
clock | is the Clock to be injected. |
Definition at line 82 of file muxer.h.
void shaka::media::Muxer::SetKeySource |
( |
KeySource * |
encryption_key_source, |
|
|
uint32_t |
max_sd_pixels, |
|
|
double |
clear_lead_in_seconds, |
|
|
double |
crypto_period_duration_in_seconds, |
|
|
FourCC |
protection_scheme |
|
) |
| |
Set encryption key source.
- Parameters
-
encryption_key_source | points to the encryption key source. The caller retains ownership, and should not be NULL. |
max_sd_pixels | specifies the threshold to determine whether a video track should be considered as SD or HD. If the track has more pixels per frame than max_sd_pixels, it is HD, SD otherwise. |
clear_lead_in_seconds | specifies clear lead duration in seconds. |
crypto_period_duration_in_seconds | specifies crypto period duration in seconds. A positive value means key rotation is enabled, the key source must support key rotation in this case. |
protection_scheme | specifies the protection scheme: 'cenc', 'cens', 'cbc1', 'cbcs'. |
Definition at line 31 of file muxer.cc.
void shaka::media::Muxer::SetMuxerListener |
( |
std::unique_ptr< MuxerListener > |
muxer_listener | ) |
|
Set a MuxerListener event handler for this object.
- Parameters
-
muxer_listener | should not be NULL. |
Definition at line 88 of file muxer.cc.
void shaka::media::Muxer::SetProgressListener |
( |
std::unique_ptr< ProgressListener > |
progress_listener | ) |
|
Set a ProgressListener event handler for this object.
- Parameters
-
progress_listener | should not be NULL. |
Definition at line 92 of file muxer.cc.
The documentation for this class was generated from the following files: