Jump to content

Sound in Opera


Zackorz
 Share

Recommended Posts

Hi Guys,

 

i created a  html5 animation for testing all different browsers and devices. So far the animation is working, but in "Opera" browser i have no sound.

 

Somebody know this issue ?

 

 

Here is how i implemented my sound:

function preload() { game.load.audio("watersound", "assets/music.mp3");}function create() { music = game.add.audio("watersound"); music.play();}
Link to comment
Share on other sites

If you offer both mp3 and ogg, make sure you put ogg files first in the array. When asked about mp3 support Opera answers "probably"(not joking) so phaser will try to play the mp3 files if they're first in the array.  https://github.com/photonstorm/phaser/issues/1718

 

You probably want to offer both if you want audio to work on IE and/or Safari.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...