player icon indicating copy to clipboard operation
player copied to clipboard

`useMediaState` hook throwing error

Open underGhost opened this issue 5 months ago • 4 comments

Current Behavior:

Attempting to use the React vidStack (1.12.11) from the installation docs and running into an error:

zm20240919-2312-2 zm20240919-2313-2

Was able to pull this package down and trace it to these lines:

https://github.com/vidstack/player/blob/main/packages/react/src/hooks/use-media-state.ts#L37 and https://github.com/vidstack/player/blob/main/packages/react/src/hooks/use-media-state.ts#L57

Commenting them out seems to allow the video player to render.

Expected Behavior:

Video player should render

Steps To Reproduce:

Follow React -> Video -> Default Layout in the docs

Reproduction Link: How to create a repro?

Environment:

Anything Else?

underGhost avatar Sep 20 '24 06:09 underGhost