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

Public Member Functions

bool Parse (const uint8_t *data, size_t data_size)
 
std::vector< uint8_t > CreateBox () const
 Creates a PSSH box for the current data.
 
uint8_t pssh_box_version () const
 
const std::vector< uint8_t > & system_id () const
 
const std::vector< std::vector
< uint8_t > > & 
key_ids () const
 
const std::vector< uint8_t > & pssh_data () const
 
void set_pssh_box_version (uint8_t version)
 
void set_system_id (const uint8_t *system_id, size_t system_id_size)
 
void add_key_id (const std::vector< uint8_t > &key_id)
 
void clear_key_ids ()
 
void set_pssh_data (const std::vector< uint8_t > &pssh_data)
 

Static Public Member Functions

static bool ParseBoxes (const uint8_t *data, size_t data_size, std::vector< ProtectionSystemSpecificInfo > *pssh_boxes)
 

Detailed Description

Definition at line 19 of file protection_system_specific_info.h.

Member Function Documentation

bool shaka::media::ProtectionSystemSpecificInfo::Parse ( const uint8_t *  data,
size_t  data_size 
)

Parses the given PSSH box into this object.

Returns
true on success; false on failure.

Definition at line 44 of file protection_system_specific_info.cc.

bool shaka::media::ProtectionSystemSpecificInfo::ParseBoxes ( const uint8_t *  data,
size_t  data_size,
std::vector< ProtectionSystemSpecificInfo > *  pssh_boxes 
)
static

Parses multiple PSSH boxes from data. These boxes should be concatenated together. Any non-PSSH box is an error.

Returns
true on success; false on failure.

Definition at line 25 of file protection_system_specific_info.cc.


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