Shaka Player Embedded
|
#include <implementation_helper.h>
Public Member Functions | |
virtual std::string | DataPathPrefix () const =0 |
virtual void | OnMessage (const std::string &session_id, MediaKeyMessageType message_type, const uint8_t *data, size_t data_size) const =0 |
virtual void | OnKeyStatusChange (const std::string &session_id) const =0 |
Protected Member Functions | |
ImplementationHelper () | |
virtual | ~ ImplementationHelper () |
ImplementationHelper (const ImplementationHelper &)=delete | |
ImplementationHelper & | operator= (const ImplementationHelper &)=delete |
ImplementationHelper (ImplementationHelper &&)=delete | |
ImplementationHelper & | operator= (ImplementationHelper &&)=delete |
An interface to the JavaScript backing of EME. This includes callbacks that are invoked by an EME implementation.
This type is thread-safe.
This MUST NOT be subclassed by the app. Only the public members are part of the public ABI. This allows us to add new members without breaking ABI compatibility.
Definition at line 38 of file implementation_helper.h.
|
protected |
|
protectedvirtual |
|
protecteddelete |
|
protecteddelete |
|
pure virtual |
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.
Implemented in shaka::js::eme::ImplementationHelperImpl.
|
pure virtual |
An event callback that should be called when the key status changes. This schedules a JavaScript event, but doesn't dispatch it.
session_id | The ID of the session whose key statuses changed. |
Implemented in shaka::js::eme::ImplementationHelperImpl.
|
pure virtual |
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.
session_id | The ID of the session that will receive the message. |
message_type | The type of the message. |
data | The data contents of the message. |
data_size | The number of bytes in |data|. |
Implemented in shaka::js::eme::ImplementationHelperImpl.
|
protecteddelete |
|
protecteddelete |