riddifog Posted June 17, 2015 Share Posted June 17, 2015 I cannot get audio to load in the default browser on a android galaxy tab 10.1 os 4.4. The audio is loaded in preload but the game never gets to create. It works on os 4.0. and in Chrome. Does anyone have any ideas on how I can get it to work or is this just an issue with 4.4 and there is nothing I can do? In the below code I get the preload alert but not the create one.var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create, update: update });var music;function preload() { game.load.audio('click', ['audio/btn-click.ogg', 'audio/btn-click.mp3']); alert("preload");}function create() { alert("create"); game.stage.backgroundColor = '#444444'; music = game.add.audio('click'); music.play();}function update() {} Link to comment Share on other sites More sharing options...
rich Posted June 17, 2015 Share Posted June 17, 2015 It's hanging waiting for the ogg or mp3 to deliver a 'canplaythrough' event, which is likely to never happen if it doesn't support either format OR the codec the file is using isn't supported. Link to comment Share on other sites More sharing options...
Recommended Posts