not playing

92 views
Skip to first unread message

lj

unread,
Oct 25, 2012, 5:01:22 PM10/25/12
to gwt-v...@googlegroups.com
Hi 
I'm trying play some mp3 files without success.  I've tried loading the files from a remote site, and as part of a resource bundle with the same result.

        SoundController soundController = new SoundController();
        Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG_MP3, url, true, true);
        boolean canPlay = sound.play();

When you run my code on firefox, sound.play() returns false, and the LoadState is SUPPORTED_READY.
On Chrome, it also returns false, but the LoadState is SUPPORTED_NOT_READY.

The demo code works fine from my browser and I can't see any significant difference in their code. Is it possible to get more info about what's wrong?

Any help would be greatly appreciated.

lj

unread,
Oct 26, 2012, 7:25:55 AM10/26/12
to gwt-v...@googlegroups.com
Looks like this is an already reported issue. Switching from MIME_TYPE_AUDIO_MPEG_MP3 to MIME_TYPE_AUDIO_BASIC fixed the problem on the tested browsers.
Reply all
Reply to author
Forward
0 new messages