+ 1

How would you see in full screen?

Using the iframe tag how can you make a video fullscreenable? An youtube video example would be very helpful.

7th Feb 2019, 7:20 PM
Avik Arefin
Avik Arefin - avatar
9 odpowiedzi
+ 1
I think you could just set the height and width to 100vw and 100vh, but I didn't test it befote
7th Feb 2019, 7:59 PM
Roel
Roel - avatar
0
Roel Boy.. I had a good laugh when I did that. It made that a tiny box. Lol. But still thanks.
7th Feb 2019, 8:09 PM
Avik Arefin
Avik Arefin - avatar
0
However I am looking a way to make it go big when I the click on the fullscreen button at the right corner.
7th Feb 2019, 8:11 PM
Avik Arefin
Avik Arefin - avatar
0
Then there is screen.width and screen.height, but it's a javascript way and has a high probability of not working at all.
7th Feb 2019, 8:12 PM
Roel
Roel - avatar
0
Hmm..
7th Feb 2019, 8:13 PM
Avik Arefin
Avik Arefin - avatar
0
But since screen.width returns an integer value it might work as x.style.width = `${screen.width}px`;
7th Feb 2019, 8:13 PM
Roel
Roel - avatar
0
Ok.. That got a bit more complicated (since i idka about JavaScript) then I thought it would get. Thanks.. I'll try.
7th Feb 2019, 8:14 PM
Avik Arefin
Avik Arefin - avatar
0
You're welcome
7th Feb 2019, 8:43 PM
Roel
Roel - avatar
6th Jun 2019, 1:02 AM
Harold Magpantay
Harold Magpantay - avatar