Jump to content

Cordova Crosswalk with Phaser


Ahmed Khalifa
 Share

Recommended Posts

Hello everyone,

I read lots of articles about android being terrible in decoding audio. But I don't understand. I run my phaser game on android in browser it work perfect with sound and music and it work perfect when its wrapped with Cordova only. The problem is when I integrate crosswalk in it, no sounds are playing at all and when I order the loading screen to wait till decode just a 1 second long sound file (mp3, 44100) it doesn't continue, just stuck there.  I tried cordova-media-plugin and still nothing is working.

I am using the latest crosswalk and latest cordova. Any help plz,

Link to comment
Share on other sites

Since iOS doesn't use the crosswalk so it works fine, android without crosswalk works on some devices fine but I need crosswalk to make sure all devices are running smoothly and as soon as I use crosswalk, the game start and sounds is never played.

Does I need the full path instead of relative path for crosswalk?

Link to comment
Share on other sites

1 minute ago, PhasedEvolution said:

// load audio
game.load.audio('audio_key', 'audio/audio.mp3');

var my_audio = game.add.audio('audio_key');

game.sound.setDecodedCallback(my_audio, function () {

    StartGameState();

}, this);

It doesn't use absolute path, no. It is relative to your index file

I am doing the same and its not working :(

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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