Jump to content

iOS sound fades on app minimize


Recommended Posts

Hi! I am using the latest stable phaser build. When I minimize the app, sound fades out, but it keeps on 'playing', because when I get back, I can see sound position updated further way in sound debug info. But, the actual sound is played from the position I left. Can anyone confirm, that it is a bug? The should not be any fade in/out at all, sound should just continue playing.

this.stage.disableVisibilityChange = true;

this is set. I tested on iphone 4 and iphone 6; 


It can be reproduced with this simple example: http://phaser.io/examples/v2/audio/play-music (just need to add this.stage.disableVisibilityChange = true);



Link to comment
Share on other sites

I need the sound to keep on playing, that is the reason why I am struggling with it.

Yes, it might be so that iOS fades sound out of focus lost, but, it does not happen for other website, which has webaudio player and does not use Phaser framework. So this must be phaser-specific.


Too bad, I have no clue where to start looking, I did not find and focus-related code for the sounds inside source code of phaser, and my idea of setting   forceSetTimeOut: true  made no difference


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...