I want to mute youtube video that is initially hidden, when I click a link it opens with FancyBox?v=2.1.5.
Now I want to mute the video, which is popup via FancyBox. If I use YouTube Api to mute video, the video is shown from hidden. But I want it's show on popup not without popup.
Code is:
$(document).ready(function () {
$(".various").fancybox({
type: "iframe", //<--added
maxWidth: 800,
maxHeight: 600,
fitToView: false,
width: '70%',
height: '70%',
autoSize: false,
closeClick: false,
helpers: {
overlay: {
locked: false
}
}
});
});
<a class="various fancybox" href="https://www.youtube.com/embed/jid2A7ldc_8?autoplay=1&showinfo=0&enablejsapi=1&hl=es&cc_lang_pref=es&cc_load_policy=1">Click To Open Video</a>