jopcode Posted January 12, 2017 Share Posted January 12, 2017 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 More sharing options...
CharlesCraft50 Posted January 12, 2017 Share Posted January 12, 2017 @jopcode Try to use ogg instead of mp4. Link to comment Share on other sites More sharing options...
erich Posted January 12, 2017 Share Posted January 12, 2017 @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 Link to comment Share on other sites More sharing options...
jopcode Posted January 12, 2017 Author Share Posted January 12, 2017 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 Now work correctly. Link to comment Share on other sites More sharing options...
perseluspiton Posted July 1, 2018 Share Posted July 1, 2018 let me get this clear, do I need the audio twice, once in ogg, once in mp3 format? Link to comment Share on other sites More sharing options...
Recommended Posts