|
Hi, I'm using fancybox 4 for a projekt that mixes images and videos in a lightbox, similarly to what it shown in this showcase: https://fancyapps.com/playground/NA I understand from the documentation that the default setting for video is "autoplay". However, I can't seem to be able to switch the autoplay off in the initialization settings. This neither works in the JS playground of the showcase nor in my code, the video will always automatically play.
I realize the video may not autoplay for others because of browser policies, but I want to make sure it doesn't autostart. |
Answered by
fancyapps
Sep 9, 2021
Replies: 1 comment 1 reply
|
Set it like this: Html : {
video : {
autoplay: false,
ratio: 4/3,
}
}, |
1 reply
Answer selected by
ts-mz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set it like this:
https://fancyapps.com/playground/NB