react-vimeo icon indicating copy to clipboard operation
react-vimeo copied to clipboard

ReferenceError: VideoHandler is not defined

Open nagman opened this issue 4 years ago • 2 comments

I'm implementing a very simple background video with your package:

<Vimeo dnt background video="600918237" />;

And my console throws this:

Uncaught ReferenceError: VideoHandler is not defined
    at vimeo_video_handler.js:7

My dependencies:

"dependencies": {
  "@u-wave/react-vimeo": "^0.9.5",
  "next": "^11.1.0",
  "react": "^17.0.2",
  "react-dom": "^17.0.2",
},

nagman avatar Sep 09 '21 15:09 nagman

Not sure if it's related, but autopause doesn't work neither. Maybe because I'm using next.js? Could it have to do with SSR, or script loading? I've seen other issues with VideoHandler is not defined on the Vimeo API, and the reason seamed to be the loading of the player SDK.

nagman avatar Sep 14 '21 09:09 nagman

Apparently the autopause issue is being addressed in another thread: https://github.com/vimeo/player.js/issues/714

nagman avatar Sep 14 '21 09:09 nagman

sorry for leaving this hanging, i suspect this is not this package's fault, but i don't really know. i will close this as stale but feel free to comment if there is still an issue.

goto-bus-stop avatar Oct 17 '22 09:10 goto-bus-stop