Closed token-codeclouds closed 10 months ago
Hi,
Actually, you have two options.
data-video-autoplay="false"
. Example:<a href="https://www.youtube.com/watch?v=UFHscDioNWQ" data-video-autoplay="false" data-fancybox="video-gallery">
<img alt="" width="200" src="http://i3.ytimg.com/vi/UFHscDioNWQ/hqdefault.jpg">
</a>
Fancybox.bind('[data-fancybox]', {
Html : {
videoAutoplay: false
}
});
Is your feature request related to a problem? Please describe.
Is there any option for setting autoplay off for video url ? I am using vimeo link with fancybox. when opening the video its automatically starting but I want to off default autoplay and when click on play button it should play.
Describe the solution you'd like
Fancybox.bind("[data-fancybox]", { // if here i can pass any param for video autoplay false });
Describe alternatives you've considered
No response
Additional context
No response