Skip to content
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

Embedded media showing blank #1540

Open
GioAceto opened this issue Feb 2, 2024 · 3 comments
Open

Embedded media showing blank #1540

GioAceto opened this issue Feb 2, 2024 · 3 comments

Comments

@GioAceto
Copy link

GioAceto commented Feb 2, 2024

We have several types of media such as images, YouTube videos embeds, Vimeo, and SoundCloud embeds on our web pages. These are all being lazy loaded so they show up as blank. We are able to get the images to show with a custom onreadyScript that performs a scrolling of the entire page, however, the media embeds are still showing blank in the screenshots.

When we set the engineOptions > headless to false in the backstop.json file, we can clearly see in the browser that our scroll script is working as expected and everything looks fine, however the screenshots don't reflect that.

We tried implementing delays, using ready selectors and ready events, and changing them from lazy load to eager load and none of those things worked.

Is this a known issue, and is there fix for this? Is it perhaps a security issue?

See image below. SoundCloud, YouTube, and Vimeo embeds are blank:

Screenshot 2024-02-02 at 1 17 06 PM

Using:
Node version 16.13.1
BackstopJS v6.3.3

@garris
Copy link
Owner

garris commented Feb 3, 2024

Maybe try a simple page with a single media tag -- all default loading, no added scrips.

Use a long delay to see if the media works in this simple context.

This is to rule out that the media can be captured in the first place.

@GioAceto
Copy link
Author

GioAceto commented Feb 5, 2024

We created a new test static html page in a new project with Node + Express. We tried testing the three iframe embeds from SoundCloud, YouTube, and Vimeo with a long delay. Only the SoundCloud embed would load and YouTube and Vimeo are still showing up blank in the screenshots. That's about as bare-bones as we can get for testing.

Our actual site uses Wordpress, and the SoundCloud embed doesn't load at all despite working on the test HTML page. We also tried removing our custom script and increasing the delay.

Do you have any other suggestions for us to try?

Thanks

@garris
Copy link
Owner

garris commented Feb 5, 2024

Hmm. I am stumped, I'm sorry I can't help here. Please post again if you figure it out. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants