7 #ifndef PACKAGER_MEDIA_BASE_RAW_KEY_SOURCE_H_
8 #define PACKAGER_MEDIA_BASE_RAW_KEY_SOURCE_H_
14 #include <packager/crypto_params.h>
15 #include <packager/media/base/key_source.h>
27 Status
FetchKeys(EmeInitDataType init_data_type,
28 const std::vector<uint8_t>& init_data)
override;
30 Status
GetKey(
const std::vector<uint8_t>& key_id,
33 int32_t crypto_period_duration_in_seconds,
34 const std::string& stream_label,
41 static std::unique_ptr<RawKeySource>
Create(
const RawKeyParams& raw_key);
52 EncryptionKeyMap encryption_key_map_;
All the methods that are virtual are virtual for mocking.