谷歌浏览器 - HTML5音频和WAV文件 [英] Google Chrome - HTML5 audio and WAV files

查看:2330
本文介绍了谷歌浏览器 - HTML5音频和WAV文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用HTML5音频标签链接到WAV文件,但它似乎突然失败了。 Chrome似乎无法播放WAV文件(MP3工作正常)。我收到如下错误消息:

I am using HTML5 audio tag to link to a WAV file, but it suddenly seems to be failing. Chrome does not seem to be able to play WAV files (MP3 works fine). I get an error message like:

Error loading: "blob:http%3A%2F%...."

Chrome的音频标签是否支持WAV?例如,尝试播放: http://www.nch.com.au/acm/ 11kulaw.wav

Does Chrome's audio tag support WAV? For e.g., try playing this: http://www.nch.com.au/acm/11kulaw.wav

我在Chrome版本15.0.874

I am on Chrome version 15.0.874

推荐答案

我没有在Chrome中收到错误,但该文件无法播放。该控件是可见的,但不起作用。

I don't get the error in Chrome, but the file does not play. The control is visible, but is not working.

Chromium项目中有一个错误报告,似乎在讨论这种行为:
http://code.google.com/p/chromium/issues/detail?id=83323

There is a bug report in Chromium project that seems to talk about the behavior: http://code.google.com/p/chromium/issues/detail?id=83323

它的要点是.wav可能意味着一堆东西,并有各种编码。评论建议使用插件来处理或下载文件。

The gist of it is that .wav can mean a bunch of things and have various encodings. The comments recommend using a plugin to handle this or downloading the file.

为了在网上提供服务,我建议将其压缩为MP3和OGG格式(如果你想对FOSS人友善)并包含多个源标签。

For the purposes of serving it on the web, I'd recommend compressing it to an MP3 and an OGG format (if you want to be nice to FOSS people) and including multiple source tags.

这篇关于谷歌浏览器 - HTML5音频和WAV文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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