video.js inside a modal window: full screen not working

前端 未结 1 1806
情深已故
情深已故 2021-01-26 01:31

I\'ve been using video.js to show stuff inside a modal windows, as you can see here:

http://www.csdalbenga.it/galleria1.html

by clicking on the \"Clicca qui per

相关标签:
1条回答
  • 2021-01-26 02:10

    Your modal puts the player in an iframe, and the browser will not allow fullscreen from within an iframe unless you specifically allow it. The following will work in Chrome and Firefox at least; Internet Explorer has not implemented allowing fullscreen from an iframe at all.

    <iframe … allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true">
    
    0 讨论(0)
提交回复
热议问题