Hi,

I am using blazy with a media switcher like slick_lightbox or blazy_photoswipe.
When we use some remote videos added with core media to be displayed with one of these "media switchers", these videos start playing (autoplay) on the "overview" thumbnail page.

When I check on the "image to iframe" media switcher, there is a button (class media__icon--play) which has a data-url component. The video starts playing when the button is pushed.

For the media switchers I use, there is an iframe (see screenshot) rendered (with autoplay on) and the videos start playing automatically when the page is loaded.
When you have let's say 4 videos next to eachother, this gets messy. I guess the videos only need to start playing when loaded in the photoswipe or slick lightbox.

Thanks!

CommentFileSizeAuthor
iframe_blazy_photoswipe.png62.53 KBtimlie

Comments

timlie created an issue. See original summary.

gausarts’s picture

You are right. It was a regression due to massive optimization at 2.0, and fixed in dev.

Please try DEV, and let me know.

timlie’s picture

Hi Gausarts, thanks for the tremendous work!
Is indeed fixed in dev!

gausarts’s picture

Thanks for the confirm.

I was too excited and too confident last time knowing that I had been able to improve the loading speed of remote videos, faster even than simpler lazy load approaches with tons of videos. I missed rechecking this particular lightbox issue you brought up till too late.

And anything with too is not good in my local wisdom.

Still need to attend 2-4 more open issues before another confidence to release one :).

gausarts’s picture

Status: Active » Fixed

This should be outdated, but let's keep it lingering around for a while to avoid dups, by now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.