---
metadata:
  - name: generator
    content: Diplodoc Platform v5.66.0
alternate:
  - https://yandex.com/dev/games/doc/en/requirements/1/3.md
  - https://yandex.com/dev/games/doc/hi/requirements/1/3.md
  - https://yandex.com/dev/games/doc/ko/requirements/1/3.md
  - https://yandex.com/dev/games/doc/ru/requirements/1/3.md
  - https://yandex.com/dev/games/doc/tr/requirements/1/3.md
  - https://yandex.com/dev/games/doc/vi/requirements/1/3.md
  - https://yandex.com/dev/games/doc/zh/requirements/1/3.md
  - href: https://yandex.com/dev/games/doc/en/requirements/1/3.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.com/dev/games/doc/en/llms.txt?revision=r21993288
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/games/doc/en/llms.txt?revision=r21993288

# Sound outside the game

<!-- source: en/_includes/script-common.md -->
<!-- source: en/_includes/script/index-js.md -->

<!-- endsource: en/_includes/script/index-js.md -->

<!-- source: en/_includes/script/requirements-js.md -->

<!-- endsource: en/_includes/script/requirements-js.md -->

<!-- source: en/_includes/script/image-modal-js.md -->

<!-- endsource: en/_includes/script/image-modal-js.md -->
<!-- endsource: en/_includes/script-common.md -->

{% note info "Item 1.3 of the Game Requirements" %}

When the game loses focus, the sound stops.

{% endnote %}



## Tracking game pause and resume {#pause-resume-tracking}

To make the game sound stop when the game loses focus, use the `game_api_pause` and `game_api_resume` events from the [Yandex Games SDK](https://yandex.com/dev/games/doc/en/sdk/sdk-events.md#pause-resume). The platform sends these events when the gameplay needs to be paused or resumed.

Subscribe to the `game_api_pause` and `game_api_resume` events in the game code:

1. When `game_api_pause` is received, turn off the game sound and pause the gameplay.
2. Wait for the `game_api_resume` event and resume the sound playback and the game.



## Verification method {#verification-method}

Moderation checks if the game sound stops:

- When minimizing the browser window on a computer or an app on a phone.
- After switching to another tab in the same browser window.
- In the browser in the [tab selection menu](*menu).

If the sound stops in all three cases, the game will be approved. It is not considered a violation if:

- The sound does not stop immediately, but within 2 seconds after leaving the game tab.
- The game sound does not stop after clicking on an ad banner and moving to the offer tab.
- On iOS, in the [tab selection menu](*menu), the game sound continues to play.

  {% cut "Example of game sound on iOS" %}

  @[](https://runtime.strm.yandex.ru/player/video/vplvqpjri3mpf4ej2g2d?autoplay=0&mute=0)

  {% endcut %}

[*menu]: ![Screenshot of a browser window with tab selection.](../../_images/requirements/1-3-popup/choosing.webp){width=300}