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

Public Member Functions

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 std::unique_ptr< PsshBoxBuilderParseFromBox (const uint8_t *data, size_t data_size)
 

Detailed Description

Definition at line 35 of file protection_system_specific_info.h.

Member Function Documentation

◆ ParseFromBox()

std::unique_ptr< PsshBoxBuilder > shaka::media::PsshBoxBuilder::ParseFromBox ( const uint8_t *  data,
size_t  data_size 
)
static

Parses the given PSSH box into this object.

Returns
nullptr on failure.

Definition at line 68 of file protection_system_specific_info.cc.


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