21
Views
3
Comments
auto Fullscreen video once play
Question
Application Type
Mobile

Hi,

how to make auto fullscreen the video once i click the play button?


thanks

Hi Jorz ,

I think just change the html tag name to iframe. That should work.

Hey @Jorz ,

Make "allowFullScreen" to "allowfullscreen". Then try again.

Thanks & Regards,

Sudip Pal

Hi Jorz,

I think I misunderstood your question initially . You wanted to go fullscreen automatically once the play button is clicked.

I have tried that using the onplay event . Just add a javascript inside the handler.

var elem = document.getElementById($parameters.VideoId);

elem.requestFullscreen();

But here I am facing an issue with the play button. The window goes fullscreen and play the video if I click anywhere else in the window  but if I click on the play button it doesn't go full screen. I will take a look if we can control the behaviour of play button.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.