kozima Posted May 18, 2015 Share Posted May 18, 2015 Hi guys,I'm using phaser in a gamejam right now and it's an amazing engine.I'm having some problem with playing a mp3 sound...When i use sound.play(), the sound plays fine in chrome but not in firefox(version 38.0.1 and windows 8 x64).The same thing happen with the audio code examples from the phaser.io website( i already tested the firefox sound with youtube and http://hpr.dogphilosophy.net/test/ , and the sound is working) This is my code: this.load.audio('victory', 'audio/sound.mp3'); //i checked the request on firebug and it's OK - 200 this.victorysound = this.add.audio('victory'); this.victorysound.play(); I don't know if it is something related with firefox or the phaser, if someone can help me.Thanks Link to comment Share on other sites More sharing options...
rich Posted May 18, 2015 Share Posted May 18, 2015 From https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats The MP3 audio format (.mp3, audio/mpeg; distinct from the above MP3 audio in an MP4 container case) is supported in <audio> by Firefox/Firefox for Android/Firefox OS when the operating system provides an MP3 decoder, and by Internet Explorer, Chrome and Safari. Incocrea 1 Link to comment Share on other sites More sharing options...
Recommended Posts