How to make android keep playing music while playing our Cocoon games?


#1

Android music stopped when I start playing my Cocoon game.


#2

you use cocoon 2.2.0 ?


#3

Did you mean stopped “background music player” or “cocoon ingame music”?


#4

background music player.
when i start open a Cocoon game (music/mp3 player in background)… the music player stopped instantly.
i cant enjoy a Cocoon game while listening other music/mp3 music.

i use Cocoon 2.1.0


#5

this is strange because in version 2.1.0 the audio works perfectly


#6

Yes. No problem with game music/sound.
But, android can’t play game music/sound and music/mp3 player at same time.
mp3 player stopped when i start open the game.


#7

well, it’s also happened with others game. But seems like for Cocoon or HTML5 games in android, have a default setting with it. So we can’t handle it.


#8

Its mean if we build with C3 without Cocoon this problem will still happen?


#9

updatee, I just have tried it while playing background music and open Cocoon compiled game also Phonegap compiled game, it’s not about the HTML5 Games problem, but the wrapper. So it must be Cocoon default setting that handle it. Phonegap can play background music smoothly without any audio gap problem


#10

Yes. This problem not happen if i use Phonegap or CLI cordova. Thank for your replies.


#11

Does this mean if I use cocoon the app won’t be able to play background music? Can I ask what type of game you are talking about? Thanks!