Shaka Packager SDK
Public Member Functions | List of all members
shaka::media::WebMInfoParser Class Reference

Parser for WebM Info element. More...

#include <webm_info_parser.h>

Inheritance diagram for shaka::media::WebMInfoParser:
shaka::media::WebMParserClient

Public Member Functions

int Parse (const uint8_t *buf, int size)
 
int64_t timecode_scale () const
 
double duration () const
 
std::chrono::system_clock::time_point date_utc () const
 

Additional Inherited Members

- Protected Member Functions inherited from shaka::media::WebMParserClient
 DISALLOW_COPY_AND_ASSIGN (WebMParserClient)
 

Detailed Description

Parser for WebM Info element.

Definition at line 17 of file webm_info_parser.h.

Member Function Documentation

◆ Parse()

int shaka::media::WebMInfoParser::Parse ( const uint8_t *  buf,
int  size 
)

Parses a WebM Info element in |buf|.

Returns
-1 if the parse fails.
0 if more data is needed.
The number of bytes parsed on success.

Definition at line 28 of file webm_info_parser.cc.


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