简体   繁体   English

Android 2.1的浏览器是否支持HTML 5以及它播放的视频格式?

[英]Does Android 2.1's Browser Support HTML 5 and What Video Format Does It Play?

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. 我个人拥有一部运行2.1的基于Android的手机,但我似乎无法让HTML 5标签工作。 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? 是否有制作Android / HTML 5兼容视频的指南? Is it truly supported? 它真的得到了支持吗?

The android 2.1 browser currently does not support the html5 video tag the way the iphone browser does. Android 2.1浏览器目前不像iphone浏览器那样支持html5视频标签。 To get the android browser to play the video when you click on the poster image you need to add onclick="this.play();" 要在单击海报图像时让Android浏览器播放视频,您需要添加onclick="this.play();" to the video tag. video标签。 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 我可以找到有关Android 2.1是否具有播放html5-video功能的详细信息,请访问: 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? 这个问题是类似的: html5视频是否适用于android版本2.1的android nexus?

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

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