HTML5音频的音频格式支持哪些 [英] HTML5 audio what audio formats are supported

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

问题描述

我有短促的声音,我想使用HTML5的Web应用程序我玩。
我把它保存在3格式。 WAV,MP3和OGG

I have short sound that I wish to play in my webapp using HTML5. I save it in 3 formats. wav, mp3 and ogg

我创建3个标签在不同格式的播放。

I created 3 tags to play in different formats.

<audio controls autobuffer>
<source src="random_d5c589b1.wav" type="audio/x-wav">
</audio>

<audio controls autobuffer>
<source src="random_d5c589b1.ogg" type="application/ogg">
</audio>

<audio controls autobuffer>
<source src="random_d5c589b1.mp3" type="audio/mpeg">
</audio>

IE9表明,它可以播放MP3和小青

IE9 shows that it can play mp3 and it plays

FF5表明,它可以播放WAV,OGG。我没有听到它。

FF5 shows that it can play wav, ogg. I do not hear it.

12铬能够播放所有格式的3,但我什么也没听到。

Chrome 12 is able to play all 3 formats but I do not hear anything.

当我使用不同的音频文件,我能听到他们在FF和铬。但我不能听到那些我所需要的。

When I use different audio files I can hear them in FF and Chrome. But I can't hear those I need.

下面是例子: - <一个href=\"http://kvartira-n.com/test-site/sound2.html\">http://kvartira-n.com/test-site/sound2.html

感谢Juhana。问题是,我只有2声道扬声器和5 + 1在Windows中被选中。这是我不清楚为什么,但一些音频双声道文件被可听和其他没有。

Thanks to Juhana. The problem was that I had only 2 channel speakers and 5+1 was selected in Windows. It is not clear to me why but some audio 2 channel files were hearable and other wasn't.

谢谢大家的问题现在已经解决了。

Thanks everyone problem is resolved now.

推荐答案

您可能会感兴趣的博客中我最近上的 HTML5音频格式。你可能只是想一起去AAC和Ogg Vorbis。

You might be interested in a blog post I made recently on HTML5 audio formats. You probably just want to go with AAC and Ogg Vorbis.

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

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