# Prevent audio from stopping on switching tabs

**URL:** <https://phaser.discourse.group/t/prevent-audio-from-stopping-on-switching-tabs/186>\
**Category:** Phaser 3\
**Created:** [December 10, 2018, 9:33am UTC](https://phaser.discourse.group/t/prevent-audio-from-stopping-on-switching-tabs/186 "2018-12-10T09:33:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zetsubou](https://avatars.discourse-cdn.com/v4/letter/z/ecccb3/32.png) [@zetsubou](https://phaser.discourse.group/u/zetsubou)\
**Post date:** [December 10, 2018, 9:33am UTC](https://phaser.discourse.group/t/prevent-audio-from-stopping-on-switching-tabs/186/1 "2018-12-10T09:33:54Z")

</div>

Hi!  
I just want audio to keep playing even after losing a focus on the screen(switching tabs, developer tools, etc.). Saw an example on labs.phaser, but haven’t figured it out.  
Any ideas?

---

<div class="post-metadata">

**Author:** ![artvinn](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/artvinn/32/155_2.png) [@artvinn](https://phaser.discourse.group/u/artvinn)\
**Post date:** [December 10, 2018, 10:57am UTC](https://phaser.discourse.group/t/prevent-audio-from-stopping-on-switching-tabs/186/2 "2018-12-10T10:57:08Z")

</div>

Put it somewhere in your scene code:

```javascript
this.sound.pauseOnBlur = false;

```

Docs: [https://photonstorm.github.io/phaser3-docs/Phaser.Sound.BaseSoundManager.html#pauseOnBlur](https://photonstorm.github.io/phaser3-docs/Phaser.Sound.BaseSoundManager.html#pauseOnBlur)
