Music works in android, but in ios music dont play. In emulator, iphone 11 work but in iphone 8 and below dont work.
this.load.audio("musicSound", bgSound);
this.load.audio("paperSound", paperSound);
this.load.audio("gameOverSound", gameOverSound);
this.load.audio("akuAkuMusicSound", akuAkuMusicSound);
this.load.audio("warScreamSound", warScreamSound);
Just put this in config.xml:
<preference name="AllowInlineMediaPlayback" value="true" />
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.