Shaka Player Embedded
player_externs.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_PLAYER_EXTERNS_H_
18 #define SHAKA_EMBEDDED_PLAYER_EXTERNS_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 BufferedRange;
33 struct BufferedInfo;
34 struct LanguageRole;
35 
36 } // namespace js
37 
43  public:
44  BufferedRange();
45  BufferedRange(js::BufferedRange&& internal);
48  ~BufferedRange();
49 
50  BufferedRange& operator=(const BufferedRange&);
51  BufferedRange& operator=(BufferedRange&&);
52 
54  double start() const;
56  double end() const;
57 
59  js::BufferedRange GetInternal() const;
60 
61  private:
62  class Impl;
63  std::shared_ptr<Impl> impl_;
64 };
65 
71  public:
72  BufferedInfo();
73  BufferedInfo(js::BufferedInfo&& internal);
74  BufferedInfo(const BufferedInfo&);
76  ~BufferedInfo();
77 
78  BufferedInfo& operator=(const BufferedInfo&);
79  BufferedInfo& operator=(BufferedInfo&&);
80 
82  const std::vector<shaka::BufferedRange>& total() const;
84  const std::vector<shaka::BufferedRange>& audio() const;
86  const std::vector<shaka::BufferedRange>& video() const;
88  const std::vector<shaka::BufferedRange>& text() const;
89 
91  js::BufferedInfo GetInternal() const;
92 
93  private:
94  class Impl;
95  std::shared_ptr<Impl> impl_;
96 };
97 
103  public:
104  LanguageRole();
105  LanguageRole(js::LanguageRole&& internal);
106  LanguageRole(const LanguageRole&);
108  ~LanguageRole();
109 
110  LanguageRole& operator=(const LanguageRole&);
111  LanguageRole& operator=(LanguageRole&&);
112 
114  const std::string& language() const;
118  const std::string& role() const;
119 
121  js::LanguageRole GetInternal() const;
122 
123  private:
124  class Impl;
125  std::shared_ptr<Impl> impl_;
126 };
127 
128 
129 } // namespace shaka
130 
131 #endif // SHAKA_EMBEDDED_PLAYER_EXTERNS_H_
#define SHAKA_EXPORT
Definition: macros.h:30