jonnitto/Jonnitto.Plyr

rel and showinfo on YouTube no longer working (as expected)

kdambekalns opened this issue · 1 comments

When using YouTube, the iframe embed URL contains rel=0 and showinfo=0. Both parameters have changed in September 2018. showinfo is no longer supported at all and rel=0 simply changes what related videos are shown (instead of hiding them).

See https://developers.google.com/youtube/player_parameters

I guess those parameters should be removed from the embed URL (at least showinfo, rel still has some effect.)

What's more, this makes the display look a little funky and impacts UX. Given a configuration where only play/pause are enabled, the player looks like this after loading:

after-loading

While playing, it looks fine:

while-playing

But when paused, this is shown:

when-paused

(And similar after activating and starting the video.)

Now, since there is an overlay (which toggles play/pause when clicking), none of the visible controls are usable. Dang.

Ok, figured I'd check the issues on Plyr itself, and of course it's known:

I guess I'll resort to disabling click-to-play, that should make those controls usable, at least. Less confusing.

Maybe leave this issue open for people who come here first… (like me)