Function: useEvent()
function useEvent<T>(
player,
event,
callback): void;
Defined in: hooks/useEvent.ts:12
Attaches an event listener to a VideoPlayer
instance for a specified event.
Type Parameters
Type Parameter |
---|
T extends keyof AllPlayerEvents |
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 | AllPlayerEvents [T ] | The callback for the event |
Returns
void
We are TheWidlarzGroupPremium support →