DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
List of all members
shaka::media::WebVttMediaParser Class Reference
Inheritance diagram for shaka::media::WebVttMediaParser:
shaka::media::MediaParser

Public Member Functions

MediaParser implementation overrides.
void Init (const InitCB &init_cb, const NewSampleCB &new_sample_cb, KeySource *decryption_key_source) override
 
bool Flush () override WARN_UNUSED_RESULT
 
bool Parse (const uint8_t *buf, int size) override WARN_UNUSED_RESULT
 

Additional Inherited Members

- Public Types inherited from shaka::media::MediaParser
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
 

Detailed Description

Definition at line 37 of file webvtt_media_parser.h.

Member Function Documentation

bool shaka::media::WebVttMediaParser::Flush ( )
overridevirtual

Flush data currently in the parser and put the parser in a state where it can receive data for a new seek point.

Returns
true if successful, false otherwise.

Implements shaka::media::MediaParser.

Definition at line 226 of file webvtt_media_parser.cc.

void shaka::media::WebVttMediaParser::Init ( const InitCB init_cb,
const NewSampleCB new_sample_cb,
KeySource decryption_key_source 
)
overridevirtual

Initialize the parser with necessary callbacks. Must be called before any data is passed to Parse().

Parameters
init_cbwill be called once enough data has been parsed to determine the initial stream configurations.
new_sample_cbwill be called each time a new media sample is available from the parser. May be NULL, and caller retains ownership.

Implements shaka::media::MediaParser.

Definition at line 219 of file webvtt_media_parser.cc.

bool shaka::media::WebVttMediaParser::Parse ( const uint8_t *  buf,
int  size 
)
overridevirtual

Should be called when there is new data to parse.

Returns
true if successful.

Implements shaka::media::MediaParser.

Definition at line 248 of file webvtt_media_parser.cc.


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