在 该网站 的首页上,有一个名为“ACURE 全国广播广告活动”的贴子,其中包含以下 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。
是否有更好的跨浏览器嵌入此音频的方法?
原文由 Steve 发布,翻译遵循 CC BY-SA 4.0 许可协议
Chrome 似乎不理解
true
和false
。使用autostart="1"
和autostart="0"
代替。资料来源:(谷歌网上论坛: https ://productforums.google.com/forum/#!topic/chrome/LkA8FoBoleU)