Shaka Packager SDK
Loading...
Searching...
No Matches
common_pssh_generator.h
1// Copyright 2017 Google LLC. All rights reserved.
2//
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file or at
5// https://developers.google.com/open-source/licenses/bsd
6
7#ifndef PACKAGER_MEDIA_BASE_COMMON_PSSH_GENERATOR_H_
8#define PACKAGER_MEDIA_BASE_COMMON_PSSH_GENERATOR_H_
9
10#include <cstdint>
11#include <optional>
12#include <vector>
13
14#include <packager/media/base/pssh_generator.h>
15
16namespace shaka {
17namespace media {
18
20 public:
22 ~CommonPsshGenerator() override;
23
26 bool SupportMultipleKeys() override;
28
29 private:
30 CommonPsshGenerator& operator=(const CommonPsshGenerator&) = delete;
32
33 // PsshGenerator implemetation overrides.
34
35 std::optional<std::vector<uint8_t>> GeneratePsshDataFromKeyIds(
36 const std::vector<std::vector<uint8_t>>& key_ids) const override;
37
38 std::optional<std::vector<uint8_t>> GeneratePsshDataFromKeyIdAndKey(
39 const std::vector<uint8_t>& key_id,
40 const std::vector<uint8_t>& key) const override;
41};
42} // namespace media
43} // namespace shaka
44
45#endif // PACKAGER_MEDIA_BASE_COMMON_PSSH_GENERATOR_H_
All the methods that are virtual are virtual for mocking.