DASH Media Packaging SDK
|
#include <webm_parser.h>
Public Member Functions | |
virtual WebMParserClient * | OnListStart (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) | |
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 30 of file webm_parser.h.