Shaka Packager SDK
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
shaka::media::WebMParserClient Class Reference

#include <webm_parser.h>

Inheritance diagram for shaka::media::WebMParserClient:
shaka::media::SegmentTestBase::ClusterParser shaka::media::WebMAudioClient shaka::media::WebMClusterParser shaka::media::WebMContentEncodingsClient shaka::media::WebMInfoParser shaka::media::WebMTracksParser shaka::media::WebMVideoClient

Public Member Functions

virtual WebMParserClientOnListStart (int id)
 
virtual bool OnListEnd (int id)
 
virtual bool OnUInt (int id, int64_t val)
 
virtual bool OnFloat (int id, double val)
 
virtual bool OnBinary (int id, const uint8_t *data, int size)
 
virtual bool OnString (int id, const std::string &str)
 

Protected Member Functions

 DISALLOW_COPY_AND_ASSIGN (WebMParserClient)
 

Detailed Description

Interface for receiving WebM parser events.

Each method is called when an element of the specified type is parsed. The ID of the element that was parsed is given along with the value stored in the element. List elements generate calls at the start and end of the list. Any pointers passed to these methods are only guaranteed to be valid for the life of that call. Each method (except for OnListStart) returns a bool that indicates whether the parsed data is valid. OnListStart returns a pointer to a WebMParserClient object, which should be used to handle elements parsed out of the list being started. If false (or NULL by OnListStart) is returned then the parse is immediately terminated and an error is reported by the parser.

Definition at line 29 of file webm_parser.h.

Constructor & Destructor Documentation

◆ ~WebMParserClient()

shaka::media::WebMParserClient::~WebMParserClient ( )
virtual

Definition at line 699 of file webm_parser.cc.

◆ WebMParserClient()

shaka::media::WebMParserClient::WebMParserClient ( )
protected

Definition at line 698 of file webm_parser.cc.

Member Function Documentation

◆ OnBinary()

bool shaka::media::WebMParserClient::OnBinary ( int  id,
const uint8_t *  data,
int  size 
)
virtual

Definition at line 721 of file webm_parser.cc.

◆ OnFloat()

bool shaka::media::WebMParserClient::OnFloat ( int  id,
double  val 
)
virtual

Definition at line 716 of file webm_parser.cc.

◆ OnListEnd()

bool shaka::media::WebMParserClient::OnListEnd ( int  id)
virtual

Definition at line 706 of file webm_parser.cc.

◆ OnListStart()

WebMParserClient * shaka::media::WebMParserClient::OnListStart ( int  id)
virtual

Reimplemented in shaka::media::WebMContentEncodingsClient.

Definition at line 701 of file webm_parser.cc.

◆ OnString()

bool shaka::media::WebMParserClient::OnString ( int  id,
const std::string &  str 
)
virtual

Definition at line 726 of file webm_parser.cc.

◆ OnUInt()

bool shaka::media::WebMParserClient::OnUInt ( int  id,
int64_t  val 
)
virtual

Definition at line 711 of file webm_parser.cc.


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