Jump to content

Phaser don't play sounds in android with cordova


jopcode
 Share

Recommended Posts

Hello, there is no achievement that the background music of my game are played in android, in the desktop version they play perfectly, but in android anything, could someone help me? Use cordova to do the construction

 

And sorry for my bad english, thanks (:

Link to comment
Share on other sites

3 hours ago, erich said:

@jopcode if you are using intel xdk, you need to show the .ogg first (its a a bug in xdk), if its the mp3 fierst it won't play the audio in android for some reason

eg:

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

Eric

Thanks :D Now work correctly.

Link to comment
Share on other sites

  • 1 year later...
 Share

  • Recently Browsing   0 members

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