7 #ifndef PACKAGER_MEDIA_BASE_PLAYREADY_SOURCE_H_ 8 #define PACKAGER_MEDIA_BASE_PLAYREADY_SOURCE_H_ 14 #include "packager/media/base/key_source.h" 30 int protection_systems_flags,
31 FourCC protection_scheme);
44 const std::string& client_cert_file,
45 const std::string& client_cert_private_key_file,
46 const std::string& client_cert_private_key_password,
47 int protection_systems_flags,
48 FourCC protection_scheme);
54 const std::vector<uint8_t>& init_data)
override;
59 const std::string& stream_label,
62 virtual Status FetchKeysWithProgramIdentifier(
const std::string& program_identifier);
69 const std::vector<uint8_t>& key_id,
70 const std::vector<uint8_t>& key);
78 Status GetCryptoPeriodKeyInternal();
81 bool generate_playready_protection_system_ =
true;
83 std::unique_ptr<EncryptionKey> encryption_key_;
84 std::string server_url_;
86 std::string client_cert_file_;
87 std::string client_cert_private_key_file_;
88 std::string client_cert_private_key_password_;
96 #endif // PACKAGER_MEDIA_BASE_PLAYREADY_SOURCE_H_
All the methods that are virtual are virtual for mocking.