Youtube iframe api 允许="autoplay" Chrome 65
Youtube iframe api allow="autoplay" Chrome 65
Chrome 65,当前的金丝雀版本,正在阻止 iframed youtube 视频自动播放声音。
Chrome 的最新更改要求 iframe 具有 allow="autoplay"
如何将 allow="autoplay" 添加到 YouTube iframe api?我在任何文档中都找不到它。
https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#iframe
A feature policy allows developers to selectively enable and disable use of various browser features and APIs. Once an origin has received autoplay permission, it can delegate that permission to cross-origin iframes with a new feature policy for autoplay. Note that autoplay is allowed by default on same-origin iframes.
<iframe src="myvideo.html" allow="autoplay">
你只需将其添加到 src URL 中,例如:
This parameter specifies whether the initial video will automatically
start to play when the player loads. Supported values are 0 or 1. The
default value is 0.
YouTube IFrame API 最近更新为使用 allow=autoplay
而不是 gesture=media
。它现在应该可以正常工作了。
抱歉造成混淆。
Chrome 65,当前的金丝雀版本,正在阻止 iframed youtube 视频自动播放声音。
Chrome 的最新更改要求 iframe 具有 allow="autoplay"
如何将 allow="autoplay" 添加到 YouTube iframe api?我在任何文档中都找不到它。
https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#iframe
A feature policy allows developers to selectively enable and disable use of various browser features and APIs. Once an origin has received autoplay permission, it can delegate that permission to cross-origin iframes with a new feature policy for autoplay. Note that autoplay is allowed by default on same-origin iframes.
<iframe src="myvideo.html" allow="autoplay">
你只需将其添加到 src URL 中,例如:
This parameter specifies whether the initial video will automatically start to play when the player loads. Supported values are 0 or 1. The default value is 0.
YouTube IFrame API 最近更新为使用 allow=autoplay
而不是 gesture=media
。它现在应该可以正常工作了。
抱歉造成混淆。