Android brower compatibility

43 views
Skip to first unread message

Eflite

unread,
Nov 21, 2011, 5:54:56 AM11/21/11
to gwt-voices
First of all, thanks for a great project, which provides really useful
functionality.

I've successfully been able to play sounds on the IPad, as well as
most desktop browsers such as chrome, safari, firefox etc. However,
when I try to play sounds in Android browsers, I hear nothing. I'm
using the latest version of the gwt-voices 2.1.4, and I'm attempting
to play mp3s. I'm using the following code:

Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_BASIC,
"sounds/piano.mp3");

I have to use the MIME_TYPE_AUDIO_BASIC type to hear any sound at all,
on any platforms.

Is there any way to be able to play sounds on Android?

Thanks a lot,
Eflite.

Fred Sauer

unread,
Jan 6, 2012, 9:10:19 PM1/6/12
to gwt-v...@googlegroups.com
Does the online demo work for you?

On Mon, Nov 21, 2011 at 2:54 AM, Eflite <skje...@gmail.com> wrote:
First of all, thanks for a great project, which provides really useful
functionality.

I've successfully been able to play sounds on the IPad, as well as
most desktop browsers such as chrome, safari, firefox etc. However,
when I try to play sounds in Android browsers, I hear nothing. I'm
using the latest version of the gwt-voices 2.1.4, and I'm attempting
to play mp3s. I'm using the following code:

Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_BASIC,
"sounds/piano.mp3");

I have to use the MIME_TYPE_AUDIO_BASIC type to hear any sound at all,
on any platforms.

So, this MIME type is NOT appropriate for MP3 audio.

Here's a compatibility matrix by browser, with a list of MIME types:


 

Is there any way to be able to play sounds on Android?


Yes, try the demo above.

 
Thanks a  lot,
Eflite.

--
You received this message because you are subscribed to the Google Groups "gwt-voices" group.
To post to this group, send email to gwt-v...@googlegroups.com.
To unsubscribe from this group, send email to gwt-voices+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-voices?hl=en.




--
Fred Sauer
fr...@allen-sauer.com

Espen Skjervold

unread,
Jan 6, 2012, 9:16:40 PM1/6/12
to gwt-v...@googlegroups.com
hi there, 
thanks for your reply. 

As an answer to your question, -the demo-page won't load at all in the Android browser (Android 2.3, Galaxy SII). It loads fine in desktop browsers like Chrome. 

I would greatly apprechiate pointers to how I'm able to play sound on Android browsers. 

Cheers, 
Eflite

Fred Sauer

unread,
Jan 7, 2012, 10:12:55 PM1/7/12
to gwt-v...@googlegroups.com
Older versions of Android did not support HTML5 audio IIRC.
Reply all
Reply to author
Forward
0 new messages