OdinMedia.addEventListener

addEventListener(eventName: Event, handler: IOdinMediaEvents[Event]): void

Registers to media events from IOdinMediaEvents.

Parameters

NameTypeDescription
eventNameEventThe name of the event to listen to
handlerIOdinMediaEvents[Event]The callback to handle the event

Returns

TypeDescription
void