7 #ifndef PACKAGER_MEDIA_BASE_PLAYREADY_SOURCE_H_
8 #define PACKAGER_MEDIA_BASE_PLAYREADY_SOURCE_H_
14 #include "packager/media/base/key_source.h"
33 const std::vector<uint8_t>& init_data)
override;
38 uint32_t crypto_period_duration_in_seconds,
39 const std::string& stream_label,
42 virtual Status FetchKeysWithProgramIdentifier(
const std::string& program_identifier);
49 const std::vector<uint8_t>& key_id,
50 const std::vector<uint8_t>& key);
54 Status GetCryptoPeriodKeyInternal();
57 bool generate_playready_protection_system_ =
true;
59 std::unique_ptr<EncryptionKey> encryption_key_;
60 std::string server_url_;
All the methods that are virtual are virtual for mocking.