Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
iFrame being reloaded #1552
I have Photoswipe using 10 images and 1 embedded youtube iFrame, I am using beforeChange to pause the video when moving from the slide and then afterChange to resume playing when the slide comes back into view.
This is working well as long as I only slide one left or one right. If I slide any more items than that then the iFrame seems to be reloaded and the video starts from the beginning.
Does this sound like the preload function causing issues? If so, anyone have any idea how to get round it?