fancybox pro with mp4 videos and autoplay

Home Forums Easy FancyBox Pro fancybox pro with mp4 videos and autoplay

This topic contains 2 replies, has 2 voices, and was last updated by  Mona Reilly 1 week ago.

  • Author
  • #11860

    Mona Reilly

    Hello, I have 2 different size mp4 videos, I would like them to open at the right size on a button click and autoplay, and be responsive. Can this be accomplished?

  • #11862


    Hi Mona, welcome on these forums!

    To have similar media links open in different sizes, you can do the following:
    1. On Settings > Media activate the option to include the jQuery Metadata extension
    2. Then go back to the page where your media links are and add size data to the link class like this example:

    <a href="//ulr.of/my.mp4" class="button fancybox-iframe {width:480,height:360}">watch my movie</a>

    Autoplay is not possible unless supported as a GET parameter by the browser like for example href=”//ulr.of/my.mp4?autoplay=true” but I’d be surprised if at all widely supported…

  • #11865

    Mona Reilly

    Thank you so much, I did manage to get this far, the only trouble was that it didnt seem responsive. The window height will not change when the window becomes smaller, since its pre-defined by the iframe. Any way to avoid that?

You must be logged in to reply to this topic.

Site by Pharéo | Hosted on The Permanently Moving Network