videojs / videojs-youtube

YouTube playback technology for Video.js
1.12k stars 548 forks source link

Not working with newer versions of video.js #597

Closed viking1304 closed 2 years ago

viking1304 commented 2 years ago

videojs-youtube 2.6.1 works perfectly fine with video.js versions up to 5.15.1

It doesn't work with 5.16.0 or any newer version of video.js

malteneuss commented 2 years ago

Until that is fixed: For those that really need Youtube support and are able to switch, i can highly recommend another open source player https://github.com/sampotts/plyr which comes with built-in in Youtube support and a quite clean API that just works.

gkatsev commented 2 years ago

videojs-youtube is working for me with latest Video.js. See this codepen for a live example: https://codepen.io/gkatsev/pen/poLqqvm

If you're on Video.js 5, you'll want to use an older version of videojs-youtube as newer versions don't assume video.js 5 support. Also, I would highly recommend updating your video.js versions, as the latest version of 5.x is almost 5 years old and there's been a lot of fixes and updates.