Shaka Player Embedded
Public Member Functions | Public Attributes | List of all members
shaka::js::eme::MediaKeys Class Reference

#include <media_keys.h>

Inheritance diagram for shaka::js::eme::MediaKeys:
shaka::BackingObject shaka::memory::Traceable

Public Member Functions

 MediaKeys (std::shared_ptr< ImplementationFactory > factory, const std::string &key_system, const MediaKeySystemConfiguration &config)
 
void Trace (memory::HeapTracer *tracer) const override
 
bool valid () const
 
ExceptionOr< RefPtr< MediaKeySession > > CreateSession (optional< MediaKeySessionType > session_type)
 
Promise SetServerCertificate (ByteBuffer cert)
 
RefPtr< MediaKeySessionGetSession (const std::string &session_id)
 
ImplementationGetCdm () const
 
- Public Member Functions inherited from shaka::BackingObject
 BackingObject ()
 
void Trace (memory::HeapTracer *tracer) const override
 
bool IsRootedAlive () const override
 
std::string name () const
 
virtual BackingObjectFactoryBasefactory () const =0
 
bool DerivedFrom (const std::string &base)
 
ReturnVal< JsValue > JsThis () const
 
void SetJsThis (Handle< JsObject > this_)
 
- Public Member Functions inherited from shaka::memory::Traceable
virtual ~Traceable ()
 
virtual bool IsShortLived () const
 

Public Attributes

const std::string key_system
 

Additional Inherited Members

- Static Public Member Functions inherited from shaka::BackingObject
static void * operator new[] (size_t size)=delete
 
static void operator delete[] (void *)=delete
 
- Static Public Attributes inherited from shaka::BackingObject
static constexpr const size_t kInternalFieldCount = 2
 
- Static Public Attributes inherited from shaka::memory::Traceable
static constexpr const uint64_t kShortLiveDurationMs = 5000
 
- Protected Member Functions inherited from shaka::BackingObject
 ~BackingObject () override
 

Detailed Description

Definition at line 45 of file media_keys.h.

Constructor & Destructor Documentation

§ MediaKeys()

shaka::js::eme::MediaKeys::MediaKeys ( std::shared_ptr< ImplementationFactory factory,
const std::string &  key_system,
const MediaKeySystemConfiguration config 
)

Definition at line 25 of file media_keys.cc.

Member Function Documentation

§ CreateSession()

ExceptionOr< RefPtr< MediaKeySession > > shaka::js::eme::MediaKeys::CreateSession ( optional< MediaKeySessionType session_type)

Definition at line 58 of file media_keys.cc.

§ GetCdm()

Implementation* shaka::js::eme::MediaKeys::GetCdm ( ) const
inline

Definition at line 62 of file media_keys.h.

§ GetSession()

RefPtr< MediaKeySession > shaka::js::eme::MediaKeys::GetSession ( const std::string &  session_id)

Definition at line 81 of file media_keys.cc.

§ SetServerCertificate()

Promise shaka::js::eme::MediaKeys::SetServerCertificate ( ByteBuffer  cert)

Definition at line 74 of file media_keys.cc.

§ Trace()

Doxygen_Skip void shaka::js::eme::MediaKeys::Trace ( memory::HeapTracer tracer) const
overridevirtual

Called during a GC run. This should call HeapTracer::Trace on all Traceable members. Be sure to call the base method when overriding.

Implements shaka::memory::Traceable.

Definition at line 47 of file media_keys.cc.

§ valid()

bool shaka::js::eme::MediaKeys::valid ( ) const

Definition at line 54 of file media_keys.cc.

Member Data Documentation

§ key_system

const std::string shaka::js::eme::MediaKeys::key_system

Definition at line 66 of file media_keys.h.


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