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

#include <implementation_helper_impl.h>

Inheritance diagram for shaka::js::eme::ImplementationHelperImpl:
shaka::eme::ImplementationHelper

Public Member Functions

 ImplementationHelperImpl (const std::string &key_system, MediaKeys *media_keys)
 
 ~ImplementationHelperImpl () override
 
std::string DataPathPrefix () const override
 
void OnMessage (const std::string &session_id, MediaKeyMessageType message_type, const uint8_t *data, size_t data_size) const override
 
void OnKeyStatusChange (const std::string &session_id) const override
 

Additional Inherited Members

- Protected Member Functions inherited from shaka::eme::ImplementationHelper
 ImplementationHelper ()
 
virtual ~ ImplementationHelper ()
 
 ImplementationHelper (const ImplementationHelper &)=delete
 
ImplementationHelperoperator= (const ImplementationHelper &)=delete
 
 ImplementationHelper (ImplementationHelper &&)=delete
 
ImplementationHelperoperator= (ImplementationHelper &&)=delete
 

Detailed Description

The implementation of the ImplementationHelper type.

Definition at line 34 of file implementation_helper_impl.h.

Constructor & Destructor Documentation

§ ImplementationHelperImpl()

shaka::js::eme::ImplementationHelperImpl::ImplementationHelperImpl ( const std::string &  key_system,
MediaKeys media_keys 
)

Definition at line 33 of file implementation_helper_impl.cc.

§ ~ImplementationHelperImpl()

shaka::js::eme::ImplementationHelperImpl::~ImplementationHelperImpl ( )
override

Definition at line 39 of file implementation_helper_impl.cc.

Member Function Documentation

§ DataPathPrefix()

std::string shaka::js::eme::ImplementationHelperImpl::DataPathPrefix ( ) const
overridevirtual

Gets the directory on the filesystem that should be used for data storage. This directory is specific for this EME implementation, so any files in it are for this implementation. ALL data MUST be in this directory.

Implements shaka::eme::ImplementationHelper.

Definition at line 42 of file implementation_helper_impl.cc.

§ OnKeyStatusChange()

void shaka::js::eme::ImplementationHelperImpl::OnKeyStatusChange ( const std::string &  session_id) const
overridevirtual

An event callback that should be called when the key status changes. This schedules a JavaScript event, but doesn't dispatch it.

Parameters
session_idThe ID of the session whose key statuses changed.

Implements shaka::eme::ImplementationHelper.

Definition at line 63 of file implementation_helper_impl.cc.

§ OnMessage()

void shaka::js::eme::ImplementationHelperImpl::OnMessage ( const std::string &  session_id,
MediaKeyMessageType  message_type,
const uint8_t *  data,
size_t  data_size 
) const
overridevirtual

An event callback that should be called when a message should be sent to the JavaScript application. This only schedules a JavaScript event, it does not dispatch it.

Parameters
session_idThe ID of the session that will receive the message.
message_typeThe type of the message.
dataThe data contents of the message.
data_sizeThe number of bytes in |data|.

Implements shaka::eme::ImplementationHelper.

Definition at line 51 of file implementation_helper_impl.cc.


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