YouTube iframe embed - full screen

前端 未结 14 1412
情深已故
情深已故 2020-12-07 19:42

I have a form that is iframed into a web page. Upon completion of the form, a YouTube video is displayed from using iframe embed.

When I enter full screen mode of th

相关标签:
14条回答
  • 2020-12-07 20:42

    Putting allowfullscreen inside iframe tag without setting it to true is already deprecated. The updated answer for this issue which is fullscreen is not available with embedded YouTube videos is to set allowfullscreen to true inside tag:

    <iframe 
       id="player" 
       src="URL here" 
       allowfullscreen="true">
    </iframe>
    

    Tested and working for all browsers without issues.

    0 讨论(0)
  • 2020-12-07 20:43

    Noticed mine worked on chrome. Got it to work in Firefox by going to <about:config> and setting full-screen-api.allow-trusted-requests-only to false.

    After full screen worked once, I could set that back to true, and full screen still worked which was quite perplexing.

    0 讨论(0)
提交回复
热议问题