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" 22 const uint8_t kFairplaySystemId[] = {0x29, 0x70, 0x1F, 0xE4, 0x3C, 0xC7,
23 0x4A, 0x34, 0x8C, 0x5B, 0xAE, 0x90,
24 0xC7, 0x43, 0x9A, 0x47};
34 const std::vector<uint8_t>& init_data)
override;
39 const std::string& stream_label,
47 int protection_system_flags);
54 explicit RawKeySource(EncryptionKeyMap&& encryption_key_map,
55 int protection_systems_flags);
59 EncryptionKeyMap encryption_key_map_;
65 #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.