Android 2.1 的浏览器支持 HTML 5 以及播放什么视频格式?
我工作的公司制作了大量视频,我们希望针对尽可能多的设备,但问题是 Android 能做什么?
我个人拥有一部运行 2.1 的 Android 手机,但我似乎无法让 HTML 5 标签正常工作。即使我可以触发浏览器播放视频,它也只会抛出一个无法触发的通知错误。
是否有制作 Android/HTML 5 兼容视频的指南?真的支持吗?
The company I work for produces a lot of video and we want to target as many devices as possible, but the question came up of what does the Android do?
I personally own an Android based phone running 2.1, but I can't seem to get the HTML 5 tag to work. Even when I can trigger the browser to playback the video it just throws a notification error that it can't.
Are there guidelines to producing Android/HTML 5 compatible videos? Is it truly supported?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
android 2.1浏览器目前不支持像iphone浏览器那样的html5视频标签。要让 Android 浏览器在单击海报图像时播放视频,您需要将
onclick="this.play();"
添加到video
标记。但是,这会启动一个单独的“窗口”,并且不会在同一浏览器“窗口”中播放视频。我能找到的有关 Android 2.1 是否能够播放 html5 视频的详细信息的唯一信息如下: http://groups.google.com/group/android-developers/browse_thread/thread/400dc61d41530242/c071c0f9712f7171?lnk=gst& q=html5 #c071c0f9712f7171
这个问题类似:Does html5 video work on Android Nexus One 与 Android 版本 2.1?
The android 2.1 browser currently does not support the html5 video tag the way the iphone browser does. To get the android browser to play the video when you click on the poster image you need to add
onclick="this.play();"
to thevideo
tag. However, this launches a separate "window" and does not play the video in the same browser "window".The only information I could find with details about whether Android 2.1 has the ability to play html5-video is here: http://groups.google.com/group/android-developers/browse_thread/thread/400dc61d41530242/c071c0f9712f7171?lnk=gst&q=html5#c071c0f9712f7171
This question is similar: Does html5 video work on android nexus one with android version 2.1?