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
12#include <packager/media/base/pssh_generator.h>
13
14namespace shaka {
15namespace media {
16
18 public:
20 ~CommonPsshGenerator() override;
21
24 bool SupportMultipleKeys() override;
26
27 private:
28 CommonPsshGenerator& operator=(const CommonPsshGenerator&) = delete;
30
31 // PsshGenerator implemetation overrides.
32
33 std::optional<std::vector<uint8_t>> GeneratePsshDataFromKeyIds(
34 const std::vector<std::vector<uint8_t>>& key_ids) const override;
35
36 std::optional<std::vector<uint8_t>> GeneratePsshDataFromKeyIdAndKey(
37 const std::vector<uint8_t>& key_id,
38 const std::vector<uint8_t>& key) const override;
39};
40} // namespace media
41} // namespace shaka
42
43#endif // PACKAGER_MEDIA_BASE_COMMON_PSSH_GENERATOR_H_
All the methods that are virtual are virtual for mocking.