KeySource is responsible for encryption key acquisition.
More...
#include <key_source.h>
|
virtual Status | FetchKeys (EmeInitDataType init_data_type, const std::vector< uint8_t > &init_data)=0 |
|
virtual Status | GetKey (const std::string &stream_label, EncryptionKey *key)=0 |
|
virtual Status | GetKey (const std::vector< uint8_t > &key_id, EncryptionKey *key)=0 |
|
virtual Status | GetCryptoPeriodKey (uint32_t crypto_period_index, int32_t crypto_period_duration_in_seconds, const std::string &stream_label, EncryptionKey *key)=0 |
|
KeySource is responsible for encryption key acquisition.
Definition at line 52 of file key_source.h.
◆ FetchKeys()
virtual Status shaka::media::KeySource::FetchKeys |
( |
EmeInitDataType |
init_data_type, |
|
|
const std::vector< uint8_t > & |
init_data |
|
) |
| |
|
pure virtual |
◆ GetCryptoPeriodKey()
virtual Status shaka::media::KeySource::GetCryptoPeriodKey |
( |
uint32_t |
crypto_period_index, |
|
|
int32_t |
crypto_period_duration_in_seconds, |
|
|
const std::string & |
stream_label, |
|
|
EncryptionKey * |
key |
|
) |
| |
|
pure virtual |
Get encryption key of the specified track type at the specified index.
- Parameters
-
crypto_period_index | is the sequence number of the key rotation period for which the key is being retrieved. |
crypto_period_duration_in_seconds | is the duration of the crypto period in seconds. |
stream_label | is the label of stream for which retrieving the key. |
key | is a pointer to the EncryptionKey which will hold the retrieved key. Owner retains ownership, and may not be NULL. |
- Returns
- OK on success, an error status otherwise.
Implemented in shaka::media::WidevineKeySource, shaka::media::RawKeySource, and shaka::media::PlayReadyKeySource.
◆ GetKey() [1/2]
virtual Status shaka::media::KeySource::GetKey |
( |
const std::string & |
stream_label, |
|
|
EncryptionKey * |
key |
|
) |
| |
|
pure virtual |
◆ GetKey() [2/2]
virtual Status shaka::media::KeySource::GetKey |
( |
const std::vector< uint8_t > & |
key_id, |
|
|
EncryptionKey * |
key |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following files: