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

Disabling autoplay does not work (due to IntersectionObserver?) #74

Open
cadeyrn opened this issue Nov 12, 2024 · 1 comment
Open

Disabling autoplay does not work (due to IntersectionObserver?) #74

cadeyrn opened this issue Nov 12, 2024 · 1 comment

Comments

@cadeyrn
Copy link

cadeyrn commented Nov 12, 2024

Disabling autoplay via the data-vbg-autoplay attribute works as long as the video is already visible on page load. But if you have to scroll to get the video into the viewport, the video starts automatically. I guess, it's due to the IntersectionObserver, mentioned in the README. But this behaviour seems wrong to me. The IntersectionObserver should not start the video if I explicitly say that the video should not start automatically. So either this would need to be fixed, or I need an option to disable the IntersectionObserver.

Thanks for your great work!

@peterbode1989
Copy link

Possible duplicate, and there is no fix. Only a work around at the moment.
See: #70

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