Android 2.1 的浏览器是否支持 HTML 5 以及它播放什么视频格式?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2596383/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Does Android 2.1's Browser Support HTML 5 and What Video Format Does It Play?
提问by John Giotta
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?
我工作的公司制作了大量视频,我们希望针对尽可能多的设备,但问题是 Android 有什么作用?
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.
我个人拥有一部运行 2.1 的基于 Android 的手机,但我似乎无法让 HTML 5 标签工作。即使我可以触发浏览器播放视频,它也会抛出一个它不能的通知错误。
Are there guidelines to producing Android/HTML 5 compatible videos? Is it truly supported?
是否有制作 Android/HTML 5 兼容视频的指南?真的支持吗?
采纳答案by dar
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 the video
tag. However, this launches a separate "window" and does not play the video in the same browser "window".
android 2.1 浏览器目前不支持 iphone 浏览器那样的 html5 视频标签。要在单击海报图像时让 Android 浏览器播放视频,您需要将其添加onclick="this.play();"
到video
标签中。但是,这会启动一个单独的“窗口”,并且不会在同一浏览器“窗口”中播放视频。
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
我能找到的关于 Android 2.1 是否能够播放 html5 视频的唯一信息在这里: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?