Shaka Player Embedded
Public Member Functions | Static Public Attributes | List of all members
shaka::eme::ClearKeyImplementationFactory Class Referencefinal

#include <clearkey_implementation_factory.h>

Inheritance diagram for shaka::eme::ClearKeyImplementationFactory:
shaka::eme::ImplementationFactory

Public Member Functions

 ClearKeyImplementationFactory ()
 
bool SupportsSessionType (MediaKeySessionType type) const override
 
bool SupportsInitDataType (MediaKeyInitDataType type) const override
 
bool SupportsAudioRobustness (const std::string &robustness) const override
 
bool SupportsVideoRobustness (const std::string &robustness) const override
 
MediaKeysRequirement DistinctiveIdentifier () const override
 
MediaKeysRequirement PersistentState () const override
 
std::shared_ptr< ImplementationCreateImplementation (ImplementationHelper *helper, MediaKeysRequirement distinctive_identifier, MediaKeysRequirement persistent_state, const std::vector< std::string > &audio_robustness, const std::vector< std::string > &video_robustness) override
 
- Public Member Functions inherited from shaka::eme::ImplementationFactory
 ImplementationFactory ()
 
virtual ~ ImplementationFactory ()
 
 ImplementationFactory (const ImplementationFactory &)=delete
 
ImplementationFactoryoperator= (const ImplementationFactory &)=delete
 
 ImplementationFactory (ImplementationFactory &&)=delete
 
ImplementationFactoryoperator= (ImplementationFactory &&)=delete
 

Static Public Attributes

static constexpr const char * kKeySystemName = "org.w3.clearkey"
 

Detailed Description

Definition at line 27 of file clearkey_implementation_factory.h.

Constructor & Destructor Documentation

§ ClearKeyImplementationFactory()

shaka::eme::ClearKeyImplementationFactory::ClearKeyImplementationFactory ( )
inline

Definition at line 31 of file clearkey_implementation_factory.h.

Member Function Documentation

§ CreateImplementation()

std::shared_ptr< Implementation > shaka::eme::ClearKeyImplementationFactory::CreateImplementation ( ImplementationHelper helper,
MediaKeysRequirement  distinctive_identifier,
MediaKeysRequirement  persistent_state,
const std::vector< std::string > &  audio_robustness,
const std::vector< std::string > &  video_robustness 
)
overridevirtual

Creates a new instance of the implementation. The arguments have already been filtered according to the support methods. This should verify that the arguments are compatible with the implementation. If the implementation doesn't support the given arguments, it MUST return nullptr.

Parameters
helperThe helper instance used to callback to JavaScript.
distinctive_identifierThe distinctive identifier requirement.
persistent_stateThe persistent state requirement.
audio_robustnessThe audio robustness requirements.
video_robustnessThe video robustness requirements.
Returns
A new implementation instance, or nullptr if not supported.

Implements shaka::eme::ImplementationFactory.

Definition at line 53 of file clearkey_implementation_factory.cc.

§ DistinctiveIdentifier()

MediaKeysRequirement shaka::eme::ClearKeyImplementationFactory::DistinctiveIdentifier ( ) const
overridevirtual
Returns
The distinctive identifier requirements of the implementation.

Implements shaka::eme::ImplementationFactory.

Definition at line 43 of file clearkey_implementation_factory.cc.

§ PersistentState()

MediaKeysRequirement shaka::eme::ClearKeyImplementationFactory::PersistentState ( ) const
overridevirtual
Returns
The persistent state requirements of the implementation.

Implements shaka::eme::ImplementationFactory.

Definition at line 48 of file clearkey_implementation_factory.cc.

§ SupportsAudioRobustness()

bool shaka::eme::ClearKeyImplementationFactory::SupportsAudioRobustness ( const std::string &  robustness) const
overridevirtual
Returns
Whether this implementation supports the given robustness.

Implements shaka::eme::ImplementationFactory.

Definition at line 33 of file clearkey_implementation_factory.cc.

§ SupportsInitDataType()

bool shaka::eme::ClearKeyImplementationFactory::SupportsInitDataType ( MediaKeyInitDataType  type) const
overridevirtual
Returns
Whether this implementation supports the given init data type.

Implements shaka::eme::ImplementationFactory.

Definition at line 27 of file clearkey_implementation_factory.cc.

§ SupportsSessionType()

bool shaka::eme::ClearKeyImplementationFactory::SupportsSessionType ( MediaKeySessionType  type) const
overridevirtual
Returns
Whether this implementation supports the given session type.

Implements shaka::eme::ImplementationFactory.

Definition at line 22 of file clearkey_implementation_factory.cc.

§ SupportsVideoRobustness()

bool shaka::eme::ClearKeyImplementationFactory::SupportsVideoRobustness ( const std::string &  robustness) const
overridevirtual
Returns
Whether this implementation supports the given robustness.

Implements shaka::eme::ImplementationFactory.

Definition at line 38 of file clearkey_implementation_factory.cc.

Member Data Documentation

§ kKeySystemName

constexpr const char* shaka::eme::ClearKeyImplementationFactory::kKeySystemName = "org.w3.clearkey"
static

Definition at line 29 of file clearkey_implementation_factory.h.


The documentation for this class was generated from the following files: