Shaka Player Embedded
clearkey_implementation_factory.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_MEDIA_CLEARKEY_IMPLEMENTATION_FACTORY_H_
16 #define SHAKA_EMBEDDED_MEDIA_CLEARKEY_IMPLEMENTATION_FACTORY_H_
17 
18 #include <memory>
19 #include <string>
20 #include <vector>
21 
23 
24 namespace shaka {
25 namespace eme {
26 
28  public:
29  static constexpr const char* kKeySystemName = "org.w3.clearkey";
30 
32 
33  bool SupportsSessionType(MediaKeySessionType type) const override;
34 
35  bool SupportsInitDataType(MediaKeyInitDataType type) const override;
36 
37  bool SupportsAudioRobustness(const std::string& robustness) const override;
38 
39  bool SupportsVideoRobustness(const std::string& robustness) const override;
40 
42 
43  MediaKeysRequirement PersistentState() const override;
44 
45  std::shared_ptr<Implementation> CreateImplementation(
46  ImplementationHelper* helper,
47  MediaKeysRequirement distinctive_identifier,
48  MediaKeysRequirement persistent_state,
49  const std::vector<std::string>& audio_robustness,
50  const std::vector<std::string>& video_robustness) override;
51 };
52 
53 } // namespace eme
54 } // namespace shaka
55 
56 #endif // SHAKA_EMBEDDED_EME_CLEARKEY_IMPLEMENTATION_FACTORY_H_
MediaKeysRequirement DistinctiveIdentifier() const override
MediaKeysRequirement PersistentState() const override
ExceptionCode type
bool SupportsSessionType(MediaKeySessionType type) const override
bool SupportsInitDataType(MediaKeyInitDataType type) const override
std::shared_ptr< Implementation > CreateImplementation(ImplementationHelper *helper, MediaKeysRequirement distinctive_identifier, MediaKeysRequirement persistent_state, const std::vector< std::string > &audio_robustness, const std::vector< std::string > &video_robustness) override
bool SupportsAudioRobustness(const std::string &robustness) const override
bool SupportsVideoRobustness(const std::string &robustness) const override