HTML5音频不工作的Firefox [英] HTML5 audio not working on Firefox

查看:115
本文介绍了HTML5音频不工作的Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Chrome工作正常。此外,我使用OGG文件,所以这不是问题。我在9.0.1的最新版本上运行。 HTML5音频应该由双方Chrome和Firefox的支持。

 <音频ID =音频>
  <信源SRC =音频/ Your_Hand_In_Mine.oggTYPE =音频/ OGG/>
  <信源SRC =音频/ Your_Hand_In_Mine.mp3TYPE =音频/ MPEG/>
  你的浏览器不支持音频元素。
< /音频>


解决方案

解决方案是对Ogg文件正确转换成MP3,反之亦然。编码是错误的,当我刚刚改名.OGG文件到MP3,愚蠢的我。我使用的软件名为无畏和开关来实现这一目标。

Works fine on Chrome. Moreover, I'm using an ogg file so that's not the problem. I'm running on the latest version 9.0.1. HTML5 audio is supposed to be supported by both Chrome and Firefox.

<audio id="audio">
  <source src="audio/Your_Hand_In_Mine.ogg" type="audio/ogg" />
  <source src="audio/Your_Hand_In_Mine.mp3" type="audio/mpeg" />
  Your browser does not support the audio element.
</audio>

解决方案

The solution is to properly convert the ogg file into mp3 or vice versa. The encoding was wrong when I just renamed the .ogg file to mp3, silly me. I used software called "Audacity" and "Switch" to accomplish this.

这篇关于HTML5音频不工作的Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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