RDK Documentation (Open Sourced RDK Components)
|
Private data structure of AAMPMediaPlayer JS object. More...
Public Member Functions | |
AAMPMediaPlayer_JS () | |
Constructor of AAMPMediaPlayer_JS structure. | |
AAMPMediaPlayer_JS (const AAMPMediaPlayer_JS &)=delete | |
AAMPMediaPlayer_JS & | operator= (const AAMPMediaPlayer_JS &)=delete |
JSObjectRef | getCallbackForAdId (std::string id) override |
Get promise callback for an ad id. More... | |
void | removeCallbackForAdId (std::string id) override |
Get promise callback for an ad id. More... | |
void | saveCallbackForAdId (std::string id, JSObjectRef cbObject) |
Save promise callback for an ad id. More... | |
void | clearCallbackForAllAdIds () |
Clear all saved promise callbacks. | |
Public Member Functions inherited from PrivAAMPStruct_JS | |
PrivAAMPStruct_JS (const PrivAAMPStruct_JS &)=delete | |
PrivAAMPStruct_JS & | operator= (const PrivAAMPStruct_JS &)=delete |
Data Fields | |
std::map< std::string, JSObjectRef > | _promiseCallbacks |
int | iPlayerId |
bool | bInfoEnabled |
Data Fields inherited from PrivAAMPStruct_JS | |
JSGlobalContextRef | _ctx |
PlayerInstanceAAMP * | _aamp |
std::multimap< AAMPEventType, void * > | _listeners |
Static Public Attributes | |
static std::vector< AAMPMediaPlayer_JS * > | _jsMediaPlayerInstances = std::vector<AAMPMediaPlayer_JS *>() |
Private data structure of AAMPMediaPlayer JS object.
Definition at line 56 of file jsmediaplayer.cpp.
|
inlineoverridevirtual |
Get promise callback for an ad id.
[in] | id | ad id |
Reimplemented from PrivAAMPStruct_JS.
Definition at line 76 of file jsmediaplayer.cpp.
|
inlineoverridevirtual |
Get promise callback for an ad id.
[in] | id | ad id |
Reimplemented from PrivAAMPStruct_JS.
Definition at line 97 of file jsmediaplayer.cpp.
|
inline |
Save promise callback for an ad id.
[in] | id | ad id |
[in] | cbObject | promise callback object |
Definition at line 116 of file jsmediaplayer.cpp.