|
typedef base::Callback< void(const std::vector< std::shared_ptr< StreamInfo > > &stream_info)> | InitCB |
|
typedef base::Callback< bool(uint32_t track_id, const std::shared_ptr< MediaSample > &media_sample)> | NewSampleCB |
|
|
virtual void | Init (const InitCB &init_cb, const NewSampleCB &new_sample_cb, KeySource *decryption_key_source)=0 |
|
virtual bool | Flush () WARN_UNUSED_RESULT=0 |
|
virtual bool | Parse (const uint8_t *buf, int size) WARN_UNUSED_RESULT=0 |
|
Definition at line 24 of file media_parser.h.
◆ InitCB
Called upon completion of parser initialization.
- Parameters
-
stream_info | contains the stream info of all the elementary streams within this file. |
Definition at line 34 of file media_parser.h.
◆ NewSampleCB
Called when a new media sample has been parsed.
- Parameters
-
track_id | is the track id of the new sample. |
media_sample | is the new media sample. |
- Returns
- true if the sample is accepted, false if something was wrong with the sample and a parsing error should be signaled.
Definition at line 43 of file media_parser.h.
◆ Flush()
virtual bool shaka::media::MediaParser::Flush |
( |
| ) |
|
|
pure virtual |
◆ Init()
virtual void shaka::media::MediaParser::Init |
( |
const InitCB & |
init_cb, |
|
|
const NewSampleCB & |
new_sample_cb, |
|
|
KeySource * |
decryption_key_source |
|
) |
| |
|
pure virtual |
◆ Parse()
virtual bool shaka::media::MediaParser::Parse |
( |
const uint8_t * |
buf, |
|
|
int |
size |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: