7 #ifndef PACKAGER_MEDIA_BASE_RAW_KEY_SOURCE_H_ 8 #define PACKAGER_MEDIA_BASE_RAW_KEY_SOURCE_H_ 14 #include "packager/media/base/key_source.h" 15 #include "packager/media/public/crypto_params.h" 23 const uint8_t kCommonSystemId[] = {0x10, 0x77, 0xef, 0xec, 0xc0, 0xb2,
24 0x4d, 0x02, 0xac, 0xe3, 0x3c, 0x1e,
25 0x52, 0xe2, 0xfb, 0x4b};
29 const uint8_t kFairplaySystemId[] = {0x29, 0x70, 0x1F, 0xE4, 0x3C, 0xC7,
30 0x4A, 0x34, 0x8C, 0x5B, 0xAE, 0x90,
31 0xC7, 0x43, 0x9A, 0x47};
41 const std::vector<uint8_t>& init_data)
override;
46 const std::string& stream_label,
60 typedef std::map<std::string, std::unique_ptr<EncryptionKey>>
62 explicit RawKeySource(EncryptionKeyMap&& encryption_key_map);
66 EncryptionKeyMap encryption_key_map_;
72 #endif // PACKAGER_MEDIA_BASE_RAW_KEY_SOURCE_H_
All the methods that are virtual are virtual for mocking.
Raw key encryption/decryption parameters, i.e. with key parameters provided.