How to set video options? #79
Unanswered
laugepetersen
asked this question in
Q&A
Replies: 1 comment
-
Simply nest your options for Html plugin inside Fancybox.bind("#manual", {
Html : {
html5video : {
tpl: `<video class="MY_CUSTOM_CLASS fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
<source src="{{src}}" type="{{format}}" />
Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!
</video>`,
format: "",
}
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I can't seem to make it work for the options on the media type.
Example:
I tried change format on videos in general as your docs and added the tester class "lauge" to html5 video elements. Nothing seems to work except the "parentEl" option.
It also happens, that the other options such as these below doesn't console.log anything and is directly copied from the docs.
Beta Was this translation helpful? Give feedback.
All reactions