Function: useVideoPlayer()
function useVideoPlayer(source, setup?): VideoPlayer;
Defined in: hooks/useVideoPlayer.ts:26
Creates a VideoPlayer instance and manages its lifecycle.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | | VideoSource | VideoConfig | The source of the video to play |
setup? | (player) => void | A function to setup the player |
Returns
The VideoPlayer instance
We are TheWidlarzGroupPremium support →