-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Poster image not visible in Safari 14.0.2 #2064
Comments
I've tested on an older MacBook Pro 13" with the same software specs: Another test on a MacBook Air late 2010: |
Hey Guys, I have the same problem. If you want to replicate: Disable captions on demo.js |
I’m seeing the same result as @oligafner on https://plyr.io. MacBook Pro (13-inch, 2019) Browser: Safari Operating System: macOS Catalina |
I think this may be related to the order in which things load. At least for me, if I set |
The same problem. Browser: Safari |
I'm still seeing this issue. I also noticed if you simply add or remove the class "plyr--captions-active" on the plyr div, it makes the image appear or disappear. |
That’s likely because it forces Safari to redraw the UI. I’ll try and look at this but my current focus is getting the new player built (see pinned issue). |
Okay thanks Sam, you're the man. It's so strange how you can toggle it on off using the captions button yet I'm not seeing anything in the css that would explain it. (I've also noticed I can set the z-index of the poster to 3 which makes it show up, but it covers the controls.) Looking into manually setting z-indexes for all elements as a workaround. |
For anyone else having this issue it seems you can workaround it by simply giving video-wrapper a z-index of zero:
|
@regiside Thanks for this! It was a huge help. PS: Safari is the worst. |
I am having this issue for only Vimeo videos and only in Safari as well. The z-index solution above is not working for me. I've also tried other things suggested in this thread with no luck. Any ideas? Vimeo embed: YouTube embed: |
Hey @jackklink, |
@regiside Hey sorry I forgot to update this! I figured it out... The issue was within the Vimeo embed itself. For some reason, in Safari, when autoplay=1 is included on the embed link, Vimeo doesn't load its poster image at all, but in other browsers, it does. So even though the video is not actually autoplaying, the poster was not loaded in. I use autoplay with Plyr because of the way my site works. I load up the player via javascript and want it to start playing right away without having to call an additional play command from the user click. (the user is clicking to load the player AND play it all in one) It's just the way I designed it a long time ago using Vue. Some day I'll find a better way to do this ha. I found a workaround for now where I disable Plyr autoplay for when the user first arrives to the link and then enable it for all videos clicked from within the site after that when loading the poster image is unnecessary because the video starts playing immediately after the user clicks a thumbnail. |
Expected behaviour
Plyr should show poster image on page load if
data-poster
is set.Actual behaviour
Plyr shows black canvas instead of poster image even if
data-poster
is set.Steps to reproduce
Environment
Console errors (if any)
Link to where the bug is happening
plyr.io/
The text was updated successfully, but these errors were encountered: