HTML嵌入自动播放= QUOT;假QUOT ;,但仍然会自动播放 [英] 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米,音响自动播放,即使两个自动播放和自动启动设置为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浏览器似乎并不理解真正
和假
。
使用自动启动=1
和自动启动=0
代替。
Chrome doesn't seem to understand true
and false
.
Use autostart="1"
and autostart="0"
instead.
来源:(谷歌群组: https://productforums.google.com/论坛/#!话题/镀铬/ LkA8FoBoleU )
这篇关于HTML嵌入自动播放= QUOT;假QUOT ;,但仍然会自动播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!