我正在从 API 中提取 Instagram 视频(网址)并在 iframe
中显示它们。一切正常,但我无法让它们在页面加载时不自动播放。检查源代码,有一个带有 autoplay
属性的视频元素,但我不能(据我所知)以编程方式对它做任何事情。
有没有办法实现我想要的?我已经尝试用 autoplay="false"
等装饰 iframe
,但没有成功(我确定视频元素优先...)。
最佳答案
我以前从未接触过 Instagram,但通过 Google 快速搜索,我找到了这篇文章:http://thenextweb.com/facebook/2013/10/11/instagram-longer-lets-users-disable-video-autoplay-small-important-step-towards-ads/ . 2013年的,不过好像不能关闭自动播放功能。
据我所知。您不能使用和 <iframe>
禁用视频自动播放, 但如果你使用 <video>
就可以.
关于html - iframe 中的 Instagram 视频 - 关闭自动播放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33576849/