what audio formats are supported by the android browser? - android

What audio formats can be played using the html5 'audio' tag in the android browser? Does anyone know where to find official specs on what the android browser supports and not?
For the record, the android media formats page does not seem to cover this - I have soundfiles (3gp) playing fine in a native app, but they won't play in my webapp.
The webkit docs also do not seem to help. My soundfiles play fine in my webapp on iphone, so that version of webkit handles them fine. Shouldn't the android browser have some official documentation somewhere?

Probably there should be official documentation. If you want to test it, why not make a web page on some domain you have access to, with links to all of the different sound files you can think of, and point your browser at it.

After some testing, I've concluded that support for the HTML5 audio element is broken in Android 2.1. Details of my testing can be found on my blog. I tested on an HTC Desire running Android 2.1 and HTC Sense, whereas Amos confirmed the same error on his HTC Heor running a custom 2.1 ROM (thanks, Amos!). If anyone will try the testpage in different configurations and report back either here or on my blog, I will update with any new information.

Related

Embedded youtube playback in Crosswalk XWalkView

I am using Crosswalk to develop a HTML5 app. Now i have a problem with playback of embedded youtube videos within the website. I have the same issue testing the website in Chrome browser. There is no issue testing in Dolphin Browser or android default browser (< Android 4.3).
I had the problem in the past also with default android browser, but i can enable playback by setting user-agent to desktop browser. That doesn't work for the crosswalk browser.
If i run the app not on a smartphone but on a tablet it works, also in Chrome with default settings.
Does anybody has an idea/solution to enable video playback on smartphone?
Thank You!
Solved. Google's intention was, that every Android Smartphone would have installed the same basic codecs.
It seems that not every manufactor of cheap Android Smartphone (from China in this case) meets these requirements (even if Play Store is installed).
There is a way to display installed codecs on smartphone.

HTML5 videos doesnt play in android

I am trying to add a html5 video in my website however the video doesnt play in Samsung Galaxy Tab 2 (Android 4.1.1). I used videojs as my plugin. To make sure that the device really can play those videos, I visited this (http://praegnanz.de/html5video) website and try to play they're each video but unfortunately it didn't. I wonder what cause the issues and I am hoping for any help. Thank you!
please check whether your stock browser supports html5
Try installing chrome or Opera web browser
There are a few things you must check, depending on the web browser you're using :
Video format: Some browsers accept H264/MP4 but not WebM (or vice versa).
autoplay: Some browsers (like Chrome for Android) do not respect the autoplay attribute, to save bandwith. On these browsers, an explicit user action is required (like a click).

Testing Android browser without the emulator?

I'm working on a javascript framework that generates webkit browser pages which emulate a native app for Android & iPhone.
I'm using an iPhone emulator (iBBPhone -- very nice) to see how my pages would look on the iPhone and iPad. I was curious if there was something besides the Android SDK phone emulator that would simulate the Android browsing experience. I'm using desktop Google Chrome right now as a "pretend Android" browser but I'm not sure how alike they really are.
The Android emulator that ships with the SDK is a bit too slow to fire up on my box to be of great use in what I'm doing (even when starting up a saved image), and I was curious if there was anything else out there that simulates Android browsing. Thanks!
I think this Firefox plugin will let you display the site as it would show up in several different types of browsers. I know it supports iPhone so I imagine it will do Android as well. This page also talks about some other Firefox plug-ins that may be useful to you.
Chrome has a nice add-on named Ripple that does the job nicely I've found. http://ripple.tinyhippos.com/
These guys pretend to meet this need. Might be a good idea to check it out.
http://www.browserstack.com/mobile-browser-emulator

How Android 2.2 interacting with Flash 10.1 (how to use flash from my app)?

I'm searched adobe and android developers sites, but can't find any details on this.
Is it possible to use Flash as a part of my app? E.g. like a widget/GUI element? Or it's integrated in browser only and can't be simple accessible?
I know, Adobe AIR apps are supported as standalone .apk. So it must be some API/SDK (from Google) to connect with Flash player.
Is there any details, how to program it (more clear: launch swf from my app and interact with it)?
Thank you!
Is it possible to use Flash as a part
of my app? E.g. like a widget/GUI
element?
Not as a regular widget. Possibly it will work via a WebView widget, though that will not be known until phones get access to Android 2.2. Flash 10.1 only works on Android 2.2 and higher, and only on hardware (not the emulator) at this time.
So it must be some API/SDK (from
Google) to connect with Flash player.
Not necessarily, particularly if Flash works with WebView.
Try this...
http://www.flashmobileblog.com/2010/03/12/flash-player-10-1-camera-support-phonegap/

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?
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?
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: Does html5 video work on android nexus one with android version 2.1?

Categories

Resources