DASH Media Packaging SDK
|
#include <demuxer.h>
Public Member Functions | |
Demuxer (const std::string &file_name) | |
void | SetKeySource (scoped_ptr< KeySource > key_source) |
Status | Initialize () |
Status | Run () |
Status | Parse () |
Read from the source and send it to the parser. | |
void | Cancel () |
const std::vector< MediaStream * > & | streams () |
MediaContainerName | container_name () |
Demuxer is responsible for extracting elementary stream samples from a media file, e.g. an ISO BMFF file.
|
explicit |
file_name | specifies the input source. It uses prefix matching to create a proper File object. The user can extend File to support a custom File object with its own prefix. |
Definition at line 37 of file demuxer.cc.
void shaka::media::Demuxer::Cancel | ( | ) |
Cancel a demuxing job in progress. Will cause Run to exit with an error status of type CANCELLED.
Definition at line 232 of file demuxer.cc.
|
inline |
Status shaka::media::Demuxer::Initialize | ( | ) |
Initialize the Demuxer. Calling other public methods of this class without this method returning OK, results in an undefined behavior. This method primes the demuxer by parsing portions of the media file to extract stream information.
Definition at line 56 of file demuxer.cc.
Status shaka::media::Demuxer::Run | ( | ) |
Drive the remuxing from demuxer side (push). Read the file and push the Data to Muxer until Eof.
Definition at line 173 of file demuxer.cc.
void shaka::media::Demuxer::SetKeySource | ( | scoped_ptr< KeySource > | key_source | ) |
Set the KeySource for media decryption.
key_source | points to the source of decryption keys. The key source must support fetching of keys for the type of media being demuxed. |
Definition at line 52 of file demuxer.cc.
|
inline |