禁用mp3自动播放 [英] Disabling autoplay for mp3

查看:69
本文介绍了禁用mp3自动播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试禁用自动播放,但没有成功.

I have tried to disable autoplay with no success.

这是我的代码:

<embed height="17" src="1GasolineSample.mp3" autoplay="false" type="audio/mpeg"  width="60" controls="console"> 

尝试失败:

  • 完全删除 autoplay
  • autoplay 更改为 autostart AutoStart
  • 自动播放/自动启动/自动启动设置为零
  • autoplay / autostart / AutoStart 设置为一个
  • autoplay / autostart / AutoStart 设置为true
  • 设置参数名称="AutoStart"值等于0
  • removing autoplay completely
  • changing autoplay to autostart and AutoStart
  • setting autoplay/autostart/AutoStart to zero
  • setting autoplay/autostart/AutoStart to one
  • setting autoplay/autostart/AutoStart to true
  • setting param name="AutoStart" value equal to 0

未发生任何行为更改.浏览器的关闭和刷新没有影响.任何帮助将不胜感激.

No changes in behavior occurred. Browser closing and refreshing made no difference. Any help would be greatly appreciated.

推荐答案

尝试删除以下内容:

autoplay="false" 

此属性使浏览器可以呈现此信息,并且无论如何均可重播.

This attribute makes the browser render this information and may replay it regardless.

如果这样不起作用,请添加:

autoplay="false" 

给您HTML源"标签.

To you HTML 'source' tag.

投票是否对兄弟有帮助.

这篇关于禁用mp3自动播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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