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 uint32_t crypto_period_duration_in_seconds,
60 const std::string& stream_label,
63 virtual Status FetchKeysWithProgramIdentifier(
const std::string& program_identifier);
70 const std::vector<uint8_t>& key_id,
71 const std::vector<uint8_t>& key);
79 Status GetCryptoPeriodKeyInternal();
82 bool generate_playready_protection_system_ =
true;
84 std::unique_ptr<EncryptionKey> encryption_key_;
85 std::string server_url_;
87 std::string client_cert_file_;
88 std::string client_cert_private_key_file_;
89 std::string client_cert_private_key_password_;
97 #endif // PACKAGER_MEDIA_BASE_PLAYREADY_SOURCE_H_
All the methods that are virtual are virtual for mocking.