jopcode

Phaser don't play sounds in android with cordova

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 (:

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.