Home > other >  About CocosCreator background music played
About CocosCreator background music played

Time:09-27

Use CocosCreator edit music playback function, use the following two lines of code pages can local debugging and close to normal,,
But with AndroidStudio packaging shing zhuo after installation package, music can be normal, but turned out to be from the receiver, cannot be played from the speaker, solving,

1,
 cc. AudioEngine. PlayMusic (url, loop) 

2,
 cc. AudioEngine. StopMusic () 


CodePudding user response:

Used cocoscreator, so I guess if simpleAudioEngine is ok?

CodePudding user response:

No, many methods are tried, are trying to adjust AndroidAtudio packaging configuration
  • Related