Jump to content

The music does not loop anymore for old Phaser versions?


Recommended Posts


Last year I built 3 games with Phaser 1.1. Today I tried to play these games and they work fine except for the background music that doesn't loop anymore. I tested this on Chrome for Mac. Here is the code:

// Play a looping background music
game.add.audio('music').play('', 0, 0.1, true);

And I get this warning in the console: 'webkitAudioContext' is deprecated. Please use 'AudioContext' instead.

The music just play once, and then stops. Do you know how to fix this problem easily without having to port my games to Phaser v2 ?


Link to comment
Share on other sites

Sounds like the browser has changed and now doesn't like it.  Upgrading to a newer version of Phaser might not be as painful as you might think.  You could look through the release notes to find the nearest highest version that has sound improvements, rather than going straight for the latest version.

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.

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.


  • Recently Browsing   0 members

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