Jump to content

audio in android galaxy tab 10.1 os 4.4


Recommended Posts

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


  • Recently Browsing   0 members

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