Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Phaser Audio problems using Ludei Cocoonjs


noden
 Share

Recommended Posts

I'm trying to port my game to mobile using ludei's cocoonjs. When playing my game in a browser, (in chrome, Edge, FF), the audio in the game works fine.

Opening the game in the Cocoon Developer App (using the Cavas+ option), none of audio is found. I get errorr such as: Phaser.Cache.getSound: Key "Orcs" not found in Cache. 

All the audio files are in my preload state i.e.  game.load.audio("Orcs", ["assets/sounds/Orcs.mp3"]);  And again, all the audio works fine in a regular browser.

Anyone else run into this issue and have a solution?

One more note - the audio does work when using the Webview option in the Cocoon Dev App. However, I'd rather use the Canvas+ since everything I read said that's the better option for html5 games all contained within a canvas.

Thanks!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...