简体   繁体   English

Android浏览器支持哪些音频格式?

[英]what audio formats are supported by the android browser?

What audio formats can be played using the html5 'audio' tag in the android browser? 在Android浏览器中使用html5'audio'标签可以播放哪些音频格式? Does anyone know where to find official specs on what the android browser supports and not? 有谁知道在哪里可以找到Android浏览器支持的官方规格而不是?

For the record, the android media formats page does not seem to cover this - I have soundfiles (3gp) playing fine in a native app, but they won't play in my webapp. 为了记录, Android媒体格式页面似乎没有涵盖这一点 - 我有一个声音文件(3gp)在本机应用程序中正常播放,但它们不会在我的webapp中播放。

The webkit docs also do not seem to help. webkit文档似乎也没有帮助。 My soundfiles play fine in my webapp on iphone, so that version of webkit handles them fine. 我的声音文件在iphone上的webapp中运行良好,因此webkit版本可以很好地处理它们。 Shouldn't the android browser have some official documentation somewhere? Android浏览器不应该在某个地方有一些官方文档吗?

Probably there should be official documentation. 可能应该有官方文件。 If you want to test it, why not make a web page on some domain you have access to, with links to all of the different sound files you can think of, and point your browser at it. 如果你想测试它,为什么不在你可以访问的某个域上创建一个网页,链接到你能想到的所有不同的声音文件,并指向你的浏览器。

After some testing, I've concluded that support for the HTML5 audio element is broken in Android 2.1. 经过一些测试,我得出结论,在Android 2.1中,对HTML5音频元素的支持被打破。 Details of my testing can be found on my blog . 我的测试详情可以在我的博客上找到。 I tested on an HTC Desire running Android 2.1 and HTC Sense, whereas Amos confirmed the same error on his HTC Heor running a custom 2.1 ROM (thanks, Amos!). 我测试了运行Android 2.1和HTC Sense的HTC Desire,而Amos在运行自定义2.1 ROM的HTC Heor上确认了同样的错误(谢谢,Amos!)。 If anyone will try the testpage in different configurations and report back either here or on my blog, I will update with any new information. 如果有人试图在testpage在不同的配置,并报告不是在这里,在我的博客,我将与任何新的信息更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM