7 #include <packager/media/base/common_pssh_generator.h>
9 #include <packager/macros/classes.h>
10 #include <packager/macros/compiler.h>
11 #include <packager/macros/logging.h>
12 #include <packager/media/base/protection_system_ids.h>
17 const uint8_t kCommonSystemPsshBoxVersion = 1;
20 CommonPsshGenerator::CommonPsshGenerator()
21 : PsshGenerator(std::vector<uint8_t>(std::begin(kCommonSystemId),
22 std::end(kCommonSystemId)),
23 kCommonSystemPsshBoxVersion) {}
25 CommonPsshGenerator::~CommonPsshGenerator() =
default;
27 bool CommonPsshGenerator::SupportMultipleKeys() {
31 std::optional<std::vector<uint8_t>>
32 CommonPsshGenerator::GeneratePsshDataFromKeyIdAndKey(
33 const std::vector<uint8_t>& key_id,
34 const std::vector<uint8_t>& key)
const {
41 std::optional<std::vector<uint8_t>>
42 CommonPsshGenerator::GeneratePsshDataFromKeyIds(
43 const std::vector<std::vector<uint8_t>>& key_ids)
const {
46 return std::vector<uint8_t>();
All the methods that are virtual are virtual for mocking.