HTML 嵌入自动播放=“false",但仍自动播放 [英] HTML embed autoplay="false", but still plays automatically
问题描述
在本网站的首页,有一个标题为全国广播广告运动"的置顶帖ForACURE",其中包含以下 HTML:
On the front page of this website, there is a sticky post titled "National Radio Advertising Campaign ForACURE" which contains the following HTML:
<embed type="audio/x-wav" src="http://www.foracure.org.au/wp-content/uploads/FOR-A-CURE-RADIO-Daniel-45sec.mp3" autoplay="false" height="20" width="200" autostart="false">
但是,当我在 Chrome v31.0.1650.57 m 中加载此网站时,即使自动播放和自动启动都设置为 false,音频也会自动播放.
However, when I load this website in Chrome v31.0.1650.57 m, the audio plays automatically, even though both autoplay and autostart are set to false.
是否有更好的跨浏览器嵌入此音频的方法?
Is there a better cross browser method of embedding this audio?
推荐答案
Chrome 似乎无法理解 true
和 false
.改用 autostart="1"
和 autostart="0"
.
Chrome doesn't seem to understand true
and false
.
Use autostart="1"
and autostart="0"
instead.
来源:(Google 网上论坛:https://productforums.google.com/论坛/#!topic/chrome/LkA8FoBoleU)
Source: (Google Groups: https://productforums.google.com/forum/#!topic/chrome/LkA8FoBoleU)
这篇关于HTML 嵌入自动播放=“false",但仍自动播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!