Search code examples
htmliframeyoutubevimeo

How to activate full screen flag in vimeo, youtube video in iframe


I have an iframe which contains vimeo video How I can activate full screen flag in that video

Here is the HTML of iframe which contains video.

<iframe width="500" height="281" frameborder="0" src="https://player.vimeo.com/video/155984146?color=ececec&amp;title=0&amp;byline=0&amp;portrait=0;"></iframe>

Solution

  • Just Use

     allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" webkitallowfullscreen="webkitallowfullscreen"
    

    under your iframe tag then it will becom like this

    <iframe width="500" height="281" src="https://player.vimeo.com/video/155984146" allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" webkitallowfullscreen="webkitallowfullscreen"> </iframe>