RDK Documentation (Open Sourced RDK Components)
AAMPMediaPlayer_JS Struct Reference

Private data structure of AAMPMediaPlayer JS object. More...

Inheritance diagram for AAMPMediaPlayer_JS:
Inheritance graph
Collaboration diagram for AAMPMediaPlayer_JS:
Collaboration graph

Public Member Functions

 AAMPMediaPlayer_JS ()
 Constructor of AAMPMediaPlayer_JS structure.
 
 AAMPMediaPlayer_JS (const AAMPMediaPlayer_JS &)=delete
 
AAMPMediaPlayer_JSoperator= (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_JSoperator= (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 *>()
 

yes

Private data structure of AAMPMediaPlayer JS object.

Definition at line 56 of file jsmediaplayer.cpp.

Member Function Documentation

◆ getCallbackForAdId()

JSObjectRef AAMPMediaPlayer_JS::getCallbackForAdId ( std::string  id)
inlineoverridevirtual

Get promise callback for an ad id.

Parameters
[in]idad id

Reimplemented from PrivAAMPStruct_JS.

Definition at line 76 of file jsmediaplayer.cpp.

◆ removeCallbackForAdId()

void AAMPMediaPlayer_JS::removeCallbackForAdId ( std::string  id)
inlineoverridevirtual

Get promise callback for an ad id.

Parameters
[in]idad id

Reimplemented from PrivAAMPStruct_JS.

Definition at line 97 of file jsmediaplayer.cpp.

◆ saveCallbackForAdId()

void AAMPMediaPlayer_JS::saveCallbackForAdId ( std::string  id,
JSObjectRef  cbObject 
)
inline

Save promise callback for an ad id.

Parameters
[in]idad id
[in]cbObjectpromise callback object

Definition at line 116 of file jsmediaplayer.cpp.


The documentation for this struct was generated from the following file: