Skip to content
This repository has been archived by the owner on Dec 11, 2017. It is now read-only.

Playing mp3 files with MIME_TYPE_AUDIO_MPEG_MP3 works only on Chrome, not Safari or Firefox #30

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Does the issue occur in "quirks mode", "standards mode" or both? If you
don't know, does your HTML page contains a DOCTYPE declaration?

unsure

What version of GWT are you using? 1.4.60? 2.0.4? Other?

Latest - 2.4.0

What version of the gwt-voices jar file or library file are you using?

Latest - 2.1.8

What operating system(s) are you using? Windows? Linux? Mac?

MacBook Pro

Does the issue occur in web mode, development mode (formerly "hosted
mode"), both or don't know?

Web Mode.

What browser(s) do you use? Chrome, Firefox, IE, Safari, other?

Chrome, FF, and Safari.

What is the browser version (if you know) from Help->About?

1. Safari - 5.1.6
2. Chrome - Version 21.0.1180.89
3. Firefox - 15.0.1

What steps will reproduce the problem? Please attach sample code if you
can.


soundController = new SoundController();
        sound1 = soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG_MP3,"test.mp3");
sound1.play();


What is the expected output? What do you see instead?

I set up the sound files using MIME_TYPE_AUDIO_MPEG_MP3 as the codec. The files 
only play on Chrome and not on Safari or Firefox (for which I get a load of 
state of LOAD_STATE_UNINITIALIZED and complete silence).

Do you have a workaround?

Yes: use MIME_TYPE_AUDIO_BASIC instead. You get a state of 
"LOAD_STATE_SUPPORTED_MAYBE_READY" but it still works. Then it works on all 
three browsers. One oddity: I can control the volume during playback and 
quieten the track with .setVolume but that will only work on Safari and Firefox 
not on Chrome.


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 19 Sep 2012 at 1:11

@GoogleCodeExporter
Copy link
Author

I got similar problem. However, in my case, the files can play on Chrome 
(v26.0.1410.64) and Firefox (v20.0.1), but cannot play on IE (v9.0.8112.16421). 
I use GWT 2.5 and gwt-voices 3.2. OS is Windows 7.

I observe Chrome will choose WebAudio, and Firefox and IE will choose Flash. 
Firefox can successfully load sound files, but IE fails. I set a break point in 
movieReady() (line 195 at VoicesMovie.java) and find Firefox can go thru. this 
point, while IE never go there. Meanwhile, I find the IE can load the demo page 
and can play the sound under "audio/mpeg; codecs=MP3 (FLASH)".

Similarly, I use MIME_TYPE_AUDIO_BASIC instead of MIME_TYPE_AUDIO_MPEG_MP3 and 
it works, but lose the loading complete information due to 
"LOAD_STATE_SUPPORTED_MAYBE_READY".

Hope my info can help to find the bug.

Original comment by [email protected] on 14 May 2013 at 7:57

@GoogleCodeExporter
Copy link
Author

I am facing similar issue. However when I change to MIME_TYPE_AUDIO_BASIC, I 
get the sound in IE and not in Chrome.
Any insight will be very helpful

Original comment by [email protected] on 24 Apr 2014 at 1:30

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant