Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>
like image 554
Gaurav_0093 Avatar asked Mar 14 '23 02:03

Gaurav_0093


2 Answers

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>
like image 61
Gaurav_0093 Avatar answered Mar 15 '23 15:03

Gaurav_0093


Hi you have to allow full screen on your iframe.

just add webkitallowfullscreen mozallowfullscreen allowfullscreen to your iframe

<iframe width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen src="https://player.vimeo.com/video/155984146?color=ececec&amp;title=0&amp;byline=0&amp;portrait=0;"></iframe>
like image 29
MKAD Avatar answered Mar 15 '23 15:03

MKAD