Jump to content

Audio still playing when out of focus


odelia
 Share

Recommended Posts

Hi, 

I have a game with audio and for some reason it still playing when out of focus 

I used the same code from other game that don't behave like this.. why is that?

this.load.audio('msx_main', ['assets/audio/main.ogg', 'assets/audio/main.mp3']);

var msx_main = this.game.add.audio('msx_main');

msx_main.play("",0,0.2,true);

It does stop on IOS but not on desktop or Android

HELP!!!

Thank you

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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