-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for Youtube 'More Videos' overlay reappearing #587
Comments
Unfortunately there is no way to hide this anymore (Youtube changed their player):
The preload thing is a cool workaround though, at least for your situation. |
Right, it's always going to appear at least once, but there's no reason to have it coming back after that. The preload thing is a bit of a hack as it seems to affect some other stuff too (eg you can't have youtube controls if you choose preload.) I was wondering whether there should be a separate |
I can't reproduce this, but it sounds like I'll add a fix that passes the |
Consider the demo page https://cookpete.com/react-player/. Now imagine a version of this with a larger video player, eg 60em x 40em. (You need a slightly larger player than the one in the current demo to see this problem since youtube apparently doesn't preemptively show the more-videos overlay unless your player is above a certain size.)
In this larger demo, if you switch to a youtube video, you immediately get the more-videos overlay. You can dismiss it by clicking the 'x'. Switch back and forth between the two youtube videos, starting and stopping them as you wish, and the more-videos overlay won't reappear.
But if you now switch to a Vimeo video, and then back to a youtube video, then the more-videos overlay will reappear. This can be very annoying if your app has a mixed list of videos and the user needs to keep dismissing the same overlay.
I've found a solution to this: If you use
then you have to dismiss the overlay only once. Apparently since a youtube player then stays loaded at all times, youtube doesn't feel the need to re-annoy you.
This use of
preload
is not mentioned in the docs. Are there downsides to this approach, or should it be described there? If so, I could provide a few lines in a PR.The text was updated successfully, but these errors were encountered: