Skip to content

Calling .stop() on a sound whilst the browser window is blurred does not actually stop the sound #258

@alandeg

Description

@alandeg

The context of this issue is related to the auto-pause feature introduces in a recent version of this library.

Steps to reproduce:

  1. Start playing a sound
  2. Blur the window
  3. Something must stop the sound i.e. an event listener which calls .stop()
  4. Focus the window again
  5. Observe the sound continues playing when it should not

As a workaround you must disable the auto pause feature using
PIXI.sound.disableAutoPause = true;

Example:
https://stackblitz.com/edit/js-mhehrg?file=index.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions