1ipt0n Posted May 6, 2015 Share Posted May 6, 2015 Hi.I'm using intel XDK to make android games in phaser and I want to add some sound and music.first I've done it with Phaser.Sound but it have one downside. when You minimalize window with game or lock phone music is still playing so I've tried intel XDK way usingintel.xdk.player.playSound(soundURL); It's working nice in intel XDK emulator, but it;s not working at all in android . So how to do it right to work on android? and if it's possible olso in ios and windows phone? Link to comment Share on other sites More sharing options...
AnushaM Posted July 29, 2015 Share Posted July 29, 2015 Hi, You can use the Cordova Media plugin. Projects Tab -> Plugins -> Standard Cordova Plugins (left panel) -> check 'Media' plugin. Link to their documentation: https://github.com/apache/cordova-plugin-mediaIt supports a variety of platforms including Android, iOS and Windows. If you want to play two sound files simultaneously, like an action sound with background music, I would suggest the Low Latency Native Audio plugin (https://github.com/floatinghotpot/cordova-plugin-nativeaudio) Please post any subsequent Intel XDK related questions on the Intel XDK user forum for best response. skeddles 1 Link to comment Share on other sites More sharing options...
Recommended Posts