Shaka Packager SDK
Public Member Functions | List of all members
shaka::media::PsshGenerator Class Referenceabstract
Inheritance diagram for shaka::media::PsshGenerator:
shaka::media::CommonPsshGenerator shaka::media::PlayReadyPsshGenerator shaka::media::WidevinePsshGenerator

Public Member Functions

 PsshGenerator (const std::vector< uint8_t > &system_id, uint8_t box_version)
 
virtual bool SupportMultipleKeys ()=0
 
Status GeneratePsshFromKeyIds (const std::vector< std::vector< uint8_t >> &key_ids, ProtectionSystemSpecificInfo *info) const
 
Status GeneratePsshFromKeyIdAndKey (const std::vector< uint8_t > &key_id, const std::vector< uint8_t > &key, ProtectionSystemSpecificInfo *info) const
 

Detailed Description

Definition at line 20 of file pssh_generator.h.

Constructor & Destructor Documentation

◆ PsshGenerator()

shaka::media::PsshGenerator::PsshGenerator ( const std::vector< uint8_t > &  system_id,
uint8_t  box_version 
)
Parameters
system_idis the protection system id for the PSSH.
box_versionspecifies the version of the new PSSH box.

Definition at line 31 of file pssh_generator.cc.

Member Function Documentation

◆ GeneratePsshFromKeyIdAndKey()

Status shaka::media::PsshGenerator::GeneratePsshFromKeyIdAndKey ( const std::vector< uint8_t > &  key_id,
const std::vector< uint8_t > &  key,
ProtectionSystemSpecificInfo info 
) const

Generate the PSSH and set the ProtectionSystemSpecificInfo.

Parameters
key_idis a the unique identifier for the key.
keyis the content key.
infois a pointer to the ProtectionSystemSpecificInfo for setting the PSSH box.

Definition at line 52 of file pssh_generator.cc.

◆ GeneratePsshFromKeyIds()

Status shaka::media::PsshGenerator::GeneratePsshFromKeyIds ( const std::vector< std::vector< uint8_t >> &  key_ids,
ProtectionSystemSpecificInfo info 
) const

Generate the PSSH and set the ProtectionSystemSpecificInfo.

Parameters
key_idsis a vector of key IDs for all tracks.
infois a pointer to the ProtectionSystemSpecificInfo for setting the PSSH box.

Definition at line 37 of file pssh_generator.cc.

◆ SupportMultipleKeys()

virtual bool shaka::media::PsshGenerator::SupportMultipleKeys ( )
pure virtual
Returns
whether the PSSH generates the PSSH box based on multiple key IDs.

Implemented in shaka::media::WidevinePsshGenerator, shaka::media::PlayReadyPsshGenerator, and shaka::media::CommonPsshGenerator.


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