Shaka Player Embedded
media_key_system_access.h
Go to the documentation of this file.
1 // Copyright 2017 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 #ifndef SHAKA_EMBEDDED_JS_EME_MEDIA_KEY_SYSTEM_ACCESS_H_
16 #define SHAKA_EMBEDDED_JS_EME_MEDIA_KEY_SYSTEM_ACCESS_H_
17 
18 #include <memory>
19 #include <string>
20 
25 #include "src/mapping/promise.h"
26 
27 namespace shaka {
28 namespace js {
29 namespace eme {
30 
32  DECLARE_TYPE_INFO(MediaKeySystemAccess);
33 
34  public:
35  MediaKeySystemAccess(const std::string& key_system,
37  std::shared_ptr<ImplementationFactory> factory);
38 
41 
42  const std::string key_system;
43 
44  private:
45  const MediaKeySystemConfiguration config_;
46  std::shared_ptr<ImplementationFactory> const factory_;
47 };
48 
50  : public BackingObjectFactory<MediaKeySystemAccess> {
51  public:
53 };
54 
55 } // namespace eme
56 } // namespace js
57 } // namespace shaka
58 
59 #endif // SHAKA_EMBEDDED_JS_EME_MEDIA_KEY_SYSTEM_ACCESS_H_
virtual BackingObjectFactoryBase * factory() const =0
MediaKeySystemConfiguration GetConfiguration() const
MediaKeySystemAccess(const std::string &key_system, MediaKeySystemConfiguration config, std::shared_ptr< ImplementationFactory > factory)