Our new developer documentation is now available. Please check it out!
OdinMedia.addEventListener
On this page
addEventListener(eventName: Event, handler: IOdinMediaEvents[Event]): void
Registers to media events from IOdinMediaEvents
.
Parameters
Name | Type | Description |
---|---|---|
eventName | Event | The name of the event to listen to |
handler | IOdinMediaEvents[Event] | The callback to handle the event |
Returns
Type | Description |
---|---|
void |