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

#include <implementation_registry.h>

Static Public Member Functions

static void AddImplementation (const std::string &key_system, std::shared_ptr< ImplementationFactory > factory)
 
static std::shared_ptr< ImplementationFactoryGetImplementation (const std::string &key_system)
 

Detailed Description

Defines a registry for implementations of EME. During system startup all implementations should be registered with this type to make them available.

These methods are thread-safe.

Definition at line 36 of file implementation_registry.h.

Member Function Documentation

§ AddImplementation()

void shaka::eme::ImplementationRegistry::AddImplementation ( const std::string &  key_system,
std::shared_ptr< ImplementationFactory factory 
)
static

Adds an EME implementation to the registry. This replaces any existing factory. Existing Implementation instances will remain alive and in use.

Definition at line 37 of file implementation_registry.cc.

§ GetImplementation()

std::shared_ptr< ImplementationFactory > shaka::eme::ImplementationRegistry::GetImplementation ( const std::string &  key_system)
static
Returns
The implementation of the given key system, or nullptr.

Definition at line 49 of file implementation_registry.cc.


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