|
RDK Documentation (Open Sourced RDK Components)
|
21 #include "MockAampEventManager.h"
43 if (g_mockAampEventManager !=
nullptr)
45 g_mockAampEventManager->SendEvent(eventData, eventMode);
63 if (g_mockAampEventManager !=
nullptr)
65 return g_mockAampEventManager->IsEventListenerAvailable(eventType);
Event Handler for AAMP Player.
AampEventManager(AampLogManager *logObj)
Default Constructor.
Class for sed event to Listener.
void SetPlayerState(PrivAAMPState state)
SetPlayerState - Flag to update player state.
void SetFakeTuneFlag(bool isFakeTuneSetting)
SetFakeTuneFlag - Some events are restricted for FakeTune.
void AddEventListener(AAMPEventType eventType, EventListener *eventListener)
AddEventListener - Register listener for one eventtype.
~AampEventManager()
Destructor Function.
AAMPEventMode
AAMP event modes.
bool IsSpecificEventListenerAvailable(AAMPEventType eventType)
IsSpecificEventListenerAvailable - Check if this particular listener present for this event.
bool IsEventListenerAvailable(AAMPEventType eventType)
IsEventListenerAvailable - Check if any listners present for this event.
PrivAAMPState
Mapping all required status codes based on JS player requirement. These requirements may be forced by...
void AddListenerForAllEvents(EventListener *eventListener)
AddListenerForAllEvents - Register one listener for all events.
void RemoveListenerForAllEvents(EventListener *eventListener)
RemoveListenerForAllEvents - Remove listener for all events.
void SendEvent(const AAMPEventPtr &eventData, AAMPEventMode eventMode=AAMP_EVENT_DEFAULT_MODE)
SendEvent - Generic function to send events.
void FlushPendingEvents()
FlushPendingEvents - Clear all pending events from EventManager.
AAMPEventType
Type of the events sending to the JSPP player.
void SetAsyncTuneState(bool isAsyncTuneSetting)
SetAsyncTuneState - Flag for Async Tune.
void RemoveEventListener(AAMPEventType eventType, EventListener *eventListener)
RemoveEventListener - Remove one listener registration for one event.