DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | List of all members
shaka::media::WebMAudioClient Class Reference

Helper class used to parse an Audio element inside a TrackEntry element. More...

#include <webm_audio_client.h>

Inheritance diagram for shaka::media::WebMAudioClient:
shaka::media::WebMParserClient

Public Member Functions

void Reset ()
 Reset this object's state so it can process a new audio track element.
 
scoped_refptr< AudioStreamInfoGetAudioStreamInfo (int64_t track_num, const std::string &codec_id, const std::vector< uint8_t > &codec_private, int64_t seek_preroll, int64_t codec_delay, const std::string &language, bool is_encrypted)
 
- Public Member Functions inherited from shaka::media::WebMParserClient
virtual WebMParserClientOnListStart (int id)
 
virtual bool OnListEnd (int id)
 
virtual bool OnBinary (int id, const uint8_t *data, int size)
 
virtual bool OnString (int id, const std::string &str)
 

Additional Inherited Members

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

Detailed Description

Helper class used to parse an Audio element inside a TrackEntry element.

Definition at line 20 of file webm_audio_client.h.

Member Function Documentation

scoped_refptr< AudioStreamInfo > shaka::media::WebMAudioClient::GetAudioStreamInfo ( int64_t  track_num,
const std::string &  codec_id,
const std::vector< uint8_t > &  codec_private,
int64_t  seek_preroll,
int64_t  codec_delay,
const std::string &  language,
bool  is_encrypted 
)

Create an AudioStreamInfo with the parameters specified.

Parameters
track_numindicates the track number.
codec_idis the codec identifier.
codec_privatecontains codec specific data.
seek_prerollindicates seek preroll in nanoseconds. A negative value means that the value is not set; in this case, a default value of 0 is used.
codecdelay indicates codec delay in nanoseconds. A negative value means that the value is not set; in this case, a default value of 0 is used.
languageindicates the language for the track.
is_encryptedindicates whether the stream is encrypted.
Returns
An AudioStreamInfo scoped_refptr if successful.
An empty scoped_refptr if there was unexpected values in the provided parameters or audio track element fields.

Definition at line 31 of file webm_audio_client.cc.


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