google-chrome - 如何在 Chrome 中自动播放带有视频的 iframe

标签 google-chrome video iframe

我用谷歌搜索了答案,但没有找到任何答案。如何在 Chrome 中自动播放视频?这是我尝试过的:

<iframe allow="fullscreen; autoplay" allowfullscreen="true" src="https://example.com"></iframe>

最佳答案

我在互联网上找到了答案,但在 stackoverflow 中没有找到,所以我将其留在这里,以便有人可以找到它:

        <iframe allow="autoplay *; fullscreen *" allowfullscreen="true" 
          src="https://example.com">
        </iframe>

关于google-chrome - 如何在 Chrome 中自动播放带有视频的 iframe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51299644/

相关文章:

html - 位置 :absolute incompatibility in Chrome and Firefox

c# - 按回车键提交 asp.net

android - 如何按 Intent 使用 Google Cast Apps?

ios - 响应式 HTML5 视频 - 在 iOS 中调整大小

javascript - 如何预加载iframe

c# - 我越来越无法加载资源:net::ERR_BLOCKED_BY_CLIENT 与谷歌浏览器

android - 添加视频后如何获取videoview的宽高

javascript - 通过 iframe 在 IE 11 中拖放文件不起作用

javascript - 当明显嵌入跨域时,谷歌地图小部件如何检测鼠标位置并在其 iframe 之外发布事件?

linux - 在远程 VLC 上使用 FFMPEG 流式传输 MP4