Function: useEvent()
function useEvent<T>(
player,
event,
callback): void;
Defined in: hooks/useEvent.ts:25
Attaches an event listener to a VideoPlayer
instance for a specified event.
Type Parameters
Type Parameter |
---|
T extends Events |
Parameters
Parameter | Type | Description |
---|---|---|
player | VideoPlayer | The player to attach the event to |
event | T | The name of the event to attach the callback to |
callback | (...args ) => void | The callback for the event |
Returns
void
We are TheWidlarzGroupPremium support →