views:

3977

answers:

2

The company I work for produces allot 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?

+2  A: 

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".

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: http://stackoverflow.com/questions/2587125/does-html5-video-work-on-android-nexus-one

dar
If it doesn't playback in the browser, should it launch in a video player app? The experiment I performed does show the video launch in a separate app, but fails to play. Is there a certain codec requirement?
John Giotta
These are the supported media formats: http://developer.android.com/intl/fr/guide/appendix/media-formats.html#core
dar
I'm beginning to think that my problems maybe a device issue or lack clarity in output requirements. I found this link you provided once already, but similar MP4s I use for iPhone (that work) do not work on the Android. Even adjusting the MP4 output to be less Apple specific (profile, etc) still do not produce a working MP4 for the Android device.
John Giotta
@dar, that post is a year old; `<video>` is supported in a limited way right now.
Roman Nurik
+1  A: 

Does it mean that HTML5 still works in android 2.1 with the use of onclick="this.play();" function?

grace0108