|
Shaka Player Embedded
|
#include <media_keys.h>
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< MediaKeySession > | GetSession (const std::string &session_id) |
| Implementation * | GetCdm () 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 BackingObjectFactoryBase * | factory () 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 | |
Definition at line 45 of file media_keys.h.
| 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.
| ExceptionOr< RefPtr< MediaKeySession > > shaka::js::eme::MediaKeys::CreateSession | ( | optional< MediaKeySessionType > | session_type | ) |
Definition at line 58 of file media_keys.cc.
|
inline |
Definition at line 62 of file media_keys.h.
| RefPtr< MediaKeySession > shaka::js::eme::MediaKeys::GetSession | ( | const std::string & | session_id | ) |
Definition at line 81 of file media_keys.cc.
| Promise shaka::js::eme::MediaKeys::SetServerCertificate | ( | ByteBuffer | cert | ) |
Definition at line 74 of file media_keys.cc.
|
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.
| bool shaka::js::eme::MediaKeys::valid | ( | ) | const |
Definition at line 54 of file media_keys.cc.
| const std::string shaka::js::eme::MediaKeys::key_system |
Definition at line 66 of file media_keys.h.
1.8.13