I am using iframes to embed YouTube videos on my site. I'm including the allowfullscreen property. On my site, the embedded videos will play fine until I click the "Full screen" button. When it's toggled to full screen, the video will briefly show in full screen mode but then immediately closes and refreshes the page. This issue does not occur in Firefox. It does occur in other browsers such as Edge and Chrome. There are no errors in the console when I inspect in the browser. I've tested with both YouTube and Vimeo videos and the same issue occurs. I've tried embedding with object tags instead of iframes but got the same result. Any ideas what could be causing this?
相关问题
- how to get selected text from iframe with javascri
- Browsers render final comma of right-to-left (rtl)
- Chrome dev tools exact computed value for CSS rule
- Change Chromium icon and “chrome” text to custom i
- debugging webgl in chrome
相关文章
- iframe的里内容看不到,但却点得到
- embed 循环播放MP3文件(loop="2"变成无限循环)
- Is there a way to hide the new HTML5 spinbox contr
- Google Chrome Cache
- how to download a file on Chrome without auto rena
- Do all browsers on iOS use WKWebview or UIWebVIew?
- How to dynamically add wmode=transparent to Youtub
- Why does Google Chrome NOT use cached pages when I
I found the cause of this issue. There was a function in one of the Wordpress theme files that was reloading the page on window resize, which was being triggered when putting the video in full screen mode. I simply took out this code, as it wasn't necessary for my site.