HTML5<音频>在Android标签 [英] HTML5 <audio> tag on Android

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

问题描述

我发现有很多主题讨论标签在Android上的支持。到目前为止,它看起来,即使是升级Froyo的Andr​​oid 2.2无法播放声音(我已经在Nexus One上测试)。

I have found many threads discussing the support of tag on Android. So far it looks, that even Android Froyo 2.2 cannot play audio (i have made tests on nexus One).

据该www.html5test.com网页,标签本身是支持的,但没有codeCS在浏览器(MP3,OGG ..)。所以,我怎么能解决这个问题?

According to the www.html5test.com web page, the tag itself is supported, but no codecs are in the browser (mp3, ogg..). So how I can solve the problem?

到目前为止,我只看到一个解决方案,使用嵌入式的Flex和Flash播放器,它可以流MP3。那是对的吗?这是唯一的办法,我可以发挥Android的Web浏览器中的.mp3或其他音频流?

So far I see only one solution, use the embedded Flex or Flash player, which can stream mp3. Is that correct? Is that the only way I can play the .mp3 or other audio stream in Android web browser?

难道是Android 2.3姜饼支持一些音频流???

Does Android 2.3 Gingerbread support some audio stream???

非常感谢 BR 斯登

添加后:工作解决方案,我终于用一个小的Flex瑞士法郎流媒体。它可以是pretty的与HTML网页轻松集成(Flex的JavaScript的通信工程pretty的好)。唯一的问题是,在一些手机Flash播放器不重新安装,必须从Android Market下载首

Added later:The working solution I finally used is a small Flex .swf for streaming. It can be pretty easily integrated with the HTML web page (Flex-Javascript communication works pretty well). The only problem is that on some phones the Flash Player is not reinstalled and must be downloaded from Android Market first.

补充甚至更晚:那么,<音频> 元素是越野车,甚至在Android 2.3 - 我不知道是什么在做谷歌这样一个简单的事情是一个问题。使用Flex播放器是欧凯,但问题是,在一些手机的Adobe Flash播放器不能从Android Market安装,因为有像1Ghz的CPU部分的Adobe硬件要求等如HTC一些供应商提供自己的Flash播放器,但这些都是pretty的不好,不与AS 3.0正常工作......到目前为止,一切都完美的作品尤其是三星手机(如Nexus S或Galaxy S的)。

Added even later: Well, the <audio> element is buggy even on Android 2.3 - I do not know what are doing in Google that such a simple thing is a problem. Using the Flex Player is okey, but the problem is that on some phones the Adobe Flash player cannot be installed from Android market, because there are some Adobe HW requirements like 1Ghz CPU, etc. Some vendors like HTC are providing the own Flash players, but those are pretty bad and do not work correctly with the AS 3.0... So far everything works perfectly especially on Samsung phones (like Nexus S or Galaxy S).

推荐答案

你挖到什么了同意我碰到的为好。 2.2支持的音频标记,但没有codeCS来支持它,这显然是一个已经固定版本的Froyo之外的一个错误:

What you dug up agrees with what I've run into as well. 2.2 supports the audio tag but has no codecs to back it, this is apparently a bug that's been fixed in releases beyond Froyo:

<一个href="http://$c$c.google.com/p/android/issues/detail?id=9372">http://$c$c.google.com/p/android/issues/detail?id=9372

我用的音频标签对我的Nexus S的MP3文件,它的正常工作有(对于最新的固件版本至少)。

I've used the audio tag with an mp3 file on my Nexus S, it's working correctly there (for the most recent firmware release at least).

这篇关于HTML5&LT;音频&GT;在Android标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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