Shaka Packager SDK
Loading...
Searching...
No Matches
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

◆ add_key_id()

void shaka::media::PsshBoxBuilder::add_key_id ( const std::vector< uint8_t > &  key_id)
inline

Definition at line 61 of file protection_system_specific_info.h.

◆ clear_key_ids()

void shaka::media::PsshBoxBuilder::clear_key_ids ( )
inline

Definition at line 64 of file protection_system_specific_info.h.

◆ CreateBox()

std::vector< uint8_t > shaka::media::PsshBoxBuilder::CreateBox ( ) const

Creates a PSSH box for the current data.

Definition at line 109 of file protection_system_specific_info.cc.

◆ key_ids()

const std::vector< std::vector< uint8_t > > & shaka::media::PsshBoxBuilder::key_ids ( ) const
inline

Definition at line 50 of file protection_system_specific_info.h.

◆ 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.

◆ pssh_box_version()

uint8_t shaka::media::PsshBoxBuilder::pssh_box_version ( ) const
inline

Definition at line 48 of file protection_system_specific_info.h.

◆ pssh_data()

const std::vector< uint8_t > & shaka::media::PsshBoxBuilder::pssh_data ( ) const
inline

Definition at line 51 of file protection_system_specific_info.h.

◆ set_pssh_box_version()

void shaka::media::PsshBoxBuilder::set_pssh_box_version ( uint8_t  version)
inline

Definition at line 53 of file protection_system_specific_info.h.

◆ set_pssh_data()

void shaka::media::PsshBoxBuilder::set_pssh_data ( const std::vector< uint8_t > &  pssh_data)
inline

Definition at line 65 of file protection_system_specific_info.h.

◆ set_system_id()

void shaka::media::PsshBoxBuilder::set_system_id ( const uint8_t *  system_id,
size_t  system_id_size 
)
inline

Definition at line 57 of file protection_system_specific_info.h.

◆ system_id()

const std::vector< uint8_t > & shaka::media::PsshBoxBuilder::system_id ( ) const
inline

Definition at line 49 of file protection_system_specific_info.h.


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