难道安卓2.1的浏览器支持HTML 5,什么视频格式并发挥它?视频格式、浏览器、HTML

2023-09-04 13:17:38 作者:守不住的是人心

我工作的公司产生了大量的视频,我们要针对尽可能多的设备越好,但这个问题上来的是什么了Android办?

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的手机上运行2.1,但我似乎无法得到的HTML 5的标签的工作。甚至当我可以触发浏览器播放视频,它只是抛出一个通知错误,它不能。

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.

有没有指引,以生产Android / HTML 5兼容的视频?可以真正支持?

Are there guidelines to producing Android/HTML 5 compatible videos? Is it truly supported?

推荐答案

在Android 2.1浏览器目前不支持HTML5视频标签的iPhone浏览器的方式做。为了让Android浏览器播放视频,当你点击你需要添加海报图像的onclick =this.play();视频标记。然而,这将启动一个单独的窗口,不打在同一个浏览器窗口的视频。

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是否有播放HTML5视频的能力的细节在这里:http://groups.google.com/group/android-developers/browse_thread/thread/400dc61d41530242/c071c0f9712f7171?lnk=gst&q=html5#c071c0f9712f7171

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

这个问题是相似的:http://stackoverflow.com/questions/2587125/does-html5-video-work-on-android-nexus-one