|
Shaka Packager SDK
|
Public Member Functions | |
MediaParser implementation overrides. | |
| void | Init (const InitCB &init_cb, const NewMediaSampleCB &new_media_sample_cb, const NewTextSampleCB &new_text_sample_cb, KeySource *decryption_key_source) override |
| bool | Flush () override |
| bool | Parse (const uint8_t *buf, int size) override |
Additional Inherited Members | |
Public Types inherited from shaka::media::MediaParser | |
| typedef std::function< void(const std::vector< std::shared_ptr< StreamInfo > > &stream_info)> | InitCB |
| typedef std::function< bool(uint32_t track_id, std::shared_ptr< MediaSample > media_sample)> | NewMediaSampleCB |
| typedef std::function< bool(uint32_t track_id, std::shared_ptr< TextSample > text_sample)> | NewTextSampleCB |
Definition at line 38 of file mp2t_media_parser.h.
| shaka::media::mp2t::Mp2tMediaParser::Mp2tMediaParser | ( | ) |
Definition at line 156 of file mp2t_media_parser.cc.
|
override |
Definition at line 161 of file mp2t_media_parser.cc.
|
overridevirtual |
Flush data currently in the parser and put the parser in a state where it can receive data for a new seek point.
Implements shaka::media::MediaParser.
Definition at line 178 of file mp2t_media_parser.cc.
|
overridevirtual |
Initialize the parser with necessary callbacks. Must be called before any data is passed to Parse().
| init_cb | will be called once enough data has been parsed to determine the initial stream configurations. |
| new_media_sample_cb | will be called each time a new media sample is available from the parser. |
| new_text_sample_cb | will be called each time a new text sample is available from the parser. |
| decryption_key_source | the key source to decrypt the frames. May be NULL, and caller retains ownership. |
Implements shaka::media::MediaParser.
Definition at line 163 of file mp2t_media_parser.cc.
|
overridevirtual |
Should be called when there is new data to parse.
Implements shaka::media::MediaParser.
Definition at line 196 of file mp2t_media_parser.cc.