7 #ifndef MEDIA_BASE_FIXED_KEY_SOURCE_H_
8 #define MEDIA_BASE_FIXED_KEY_SOURCE_H_
14 #include "packager/media/base/key_source.h"
22 const uint8_t kCommonSystemId[] = {0x10, 0x77, 0xef, 0xec, 0xc0, 0xb2,
23 0x4d, 0x02, 0xac, 0xe3, 0x3c, 0x1e,
24 0x52, 0xe2, 0xfb, 0x4b};
33 Status
FetchKeys(EmeInitDataType init_data_type,
34 const std::vector<uint8_t>& init_data)
override;
36 Status
GetKey(
const std::vector<uint8_t>& key_id,
39 const std::string& stream_label,
52 static std::unique_ptr<FixedKeySource>
Create(
53 const std::vector<uint8_t>& key_id,
54 const std::vector<uint8_t>& key,
55 const std::vector<uint8_t>& pssh_boxes,
56 const std::vector<uint8_t>& iv);
65 std::unique_ptr<EncryptionKey> encryption_key_;
73 #endif // MEDIA_BASE_FIXED_KEY_SOURCE_H_