View Full Version : Audio on Android

8 Jan 2011, 8:23 PM
I have tested the audio demo in the "kitchen sink" on multiple android devices, and it does not seem to work consistently. My test on a T-mobile G2 (Android 2.2) and a Samsung Behold 2 (Android 1.6) do not display the audio controls. Interestingly, the audio works fine in the chrome browser (9.0) and also on the Logitech Review with Google TV. Are these know issues, or are there other techniques needed to get the Audio to work on mobile Android devices?

20 May 2011, 9:36 AM
I can verify this.
Audio-Playback also does not work on: HTC-Wildfire (Android 2.2.1) and in the Chrome-Browser 11.0.696.68 on Ubuntu 10.10
and I have the same problem with videos.

Is there an other way to play audio/videos ? So far I have tryed the kitchenSink examples and the examples from the Sencha-touch API.

23 Jun 2011, 11:22 PM
Is there any work around or other techniques for solve this problem ? Is this way the audio tag using secha framework behaves in droid ? It works fine in Safari, Iphone 3+ and Ipad. Also audio tag doesn't display in Chrome too.

24 Jun 2011, 2:12 AM
i use the sencha HTML5 audio which works fine on Android.

24 Jun 2011, 4:16 AM
I'm also using HTML5 audio. It will be helpful if you could post a sample code that works for both droid and IOS.

I tested Kitchen sink demo, it doesn't seem to be working.

25 Jun 2011, 5:48 AM
it's nothing special, just

this.mediaPlayer = new Ext.Audio({
url : src,
renderTo : document.body,
enableControls : false

25 Jun 2011, 6:16 AM
Audio tag on Android is working on 2.3 i've tested it on Samsung Galaxy Tab (2.2) and samsung gt 9003 (2.2.1) and it's not working.

25 Jun 2011, 11:20 AM
The audio tag seems to be a big problem for Google. Also see http://stackoverflow.com/questions/4895188/html5-audio-tag-on-android.

Some suggest to use a Video tag in exchange (it actually has the same API), but I didn't event get that to play an MP3 file on my Nexus S.

I will now use the PhoneGap Audio API for playing my files. Is that an option for you? Seems a lot easier and definitely works on Android.