HTML 嵌入自动播放=“false",但仍自动播放 [英] HTML embed autoplay="false", but still plays automatically

查看:40
本文介绍了HTML 嵌入自动播放=“false",但仍自动播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

本网站的首页,有一个标题为全国广播广告运动"的置顶帖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 似乎无法理解 truefalse.改用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆