Shaka Player Embedded
manifest.h
Go to the documentation of this file.
1 // Copyright 2020 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 // AUTO-GENERATED: DO NOT EDIT
16 
17 #ifndef SHAKA_EMBEDDED_MANIFEST_H_
18 #define SHAKA_EMBEDDED_MANIFEST_H_
19 
20 #include <memory>
21 #include <string>
22 #include <unordered_map>
23 #include <vector>
24 
25 #include "macros.h"
26 #include "optional.h"
27 
28 namespace shaka {
29 
30 namespace js {
31 
32 struct InitDataOverride;
33 struct DrmInfo;
34 
35 } // namespace js
36 
45  public:
51 
52  InitDataOverride& operator=(const InitDataOverride&);
53  InitDataOverride& operator=(InitDataOverride&&);
54 
56  const std::string& init_data_type() const;
58  shaka::optional<std::string> key_id() const;
59 
61  js::InitDataOverride GetInternal() const;
62 
63  private:
64  class Impl;
65  std::shared_ptr<Impl> impl_;
66 };
67 
73 class SHAKA_EXPORT DrmInfo final {
74  public:
75  DrmInfo();
76  DrmInfo(js::DrmInfo&& internal);
77  DrmInfo(const DrmInfo&);
78  DrmInfo(DrmInfo&&);
79  ~DrmInfo();
80 
81  DrmInfo& operator=(const DrmInfo&);
82  DrmInfo& operator=(DrmInfo&&);
83 
85  const std::string& key_system() const;
87  const std::string& license_server_uri() const;
92  bool distinctive_identifier_required() const;
97  bool persistent_state_required() const;
99  const std::string& audio_robustness() const;
101  const std::string& video_robustness() const;
106  const std::vector<shaka::InitDataOverride>& init_data() const;
111  const std::vector<std::string>& key_ids() const;
112 
114  js::DrmInfo GetInternal() const;
115 
116  private:
117  class Impl;
118  std::shared_ptr<Impl> impl_;
119 };
120 
121 
122 } // namespace shaka
123 
124 #endif // SHAKA_EMBEDDED_MANIFEST_H_
#define SHAKA_EXPORT
Definition: macros.h:30