Jump to content

audio in android galaxy tab 10.1 os 4.4


riddifog
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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