Skip to main content
Version: v7 Alpha

Function: useVideoPlayer()

function useVideoPlayer(source, setup?): VideoPlayer;

Defined in: hooks/useVideoPlayer.ts:26

Creates a VideoPlayer instance and manages its lifecycle.

Parameters

ParameterTypeDescription
source| VideoSource | VideoConfigThe source of the video to play
setup?(player) => voidA function to setup the player

Returns

VideoPlayer

The VideoPlayer instance

We are TheWidlarzGroupPremium support →