---
metadata:
  - name: generator
    content: Diplodoc Platform v5.66.0
alternate:
  - https://yandex.com/dev/games/doc/en/requirements/1/6.md
  - https://yandex.com/dev/games/doc/hi/requirements/1/6.md
  - https://yandex.com/dev/games/doc/ko/requirements/1/6.md
  - https://yandex.com/dev/games/doc/ru/requirements/1/6.md
  - https://yandex.com/dev/games/doc/tr/requirements/1/6.md
  - https://yandex.com/dev/games/doc/vi/requirements/1/6.md
  - https://yandex.com/dev/games/doc/zh/requirements/1/6.md
  - href: https://yandex.com/dev/games/doc/en/requirements/1/6.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

# System player

<!-- 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 "Items 1.6.1.6 and 1.6.2.5 of the Game Requirements" %}

The system player triggered by the game doesn't appear in any browser.

{% endnote %}

The browser's system player allows you to control sound and video. To check the game, moderation launches it on [mobile devices](#mobile) and [desktop](#desktop) (for checking on a computer, make sure the [player is enabled](#enable-player)).

## Disabling the system player {#disable-player}

The system player appears when the browser detects playback via the `<audio>` or `<video>` HTML elements. To avoid this, use the Web Audio API — it works directly with the audio context and doesn't register a media session in the browser.

A typical scenario for playing sound via the Web Audio API:

1. Create an audio context: `const ctx = new AudioContext()`.
1. Load the audio file via `fetch()` and decode it using [ctx.decodeAudioData()](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData){.external}.
1. Create a sound source — `AudioBufferSourceNode` — and connect it to the context output: `source.connect(ctx.destination)`.
1. Start playback: `source.start()`.

For more information about the Web Audio API, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API){.external}.

## Checking on mobile devices {#mobile}

Launch the game. Then swipe down on the screen to open the notifications panel. Make sure that:

- There is no player.
- There is a player, but it's triggered by sound from another tab or application.

## Checking on desktop {#desktop}

### Enabling the player {#enable-player}

1. Enable the system player in the browser settings.

    {% cut "Enable player in Yandex Browser" %}

    To enable the system player in Yandex Browser, in the upper right corner, select ![](../../_images/icons/menu.svg) → **Settings** → **Interface** → **General** and enable the option **Show a music and video control button on the toolbar**.

    Read more about the player in the [Browser Help](https://yandex.com/support/browser/en/working-with-files/audio){.external}.

    {% endcut %}

2. Make sure the player works. To do this, play a video or music in the browser, for example, a [Unity video tutorial](https://yandex.com/dev/games/doc/en/sdk/unity/advertisement.md).

If the system player is configured correctly, the corresponding icon will appear in the upper right corner of the browser:

- Google Chrome — ![](../../_images/requirements/1-6-browser-player/system-player-chrom.svg)
- Yandex Browser — ![](../../_images/requirements/1-6-browser-player/system-player.svg)

{% note info %}

If you have the sidebar enabled in Yandex Browser, the icon may be located on it.

{% endnote %}

### Checking {#desktop-check}

If the player is already [enabled](#enable-player), open the game and make sure that:

- There is no player.
- There is a player, but it's triggered by sound from another tab or application (to check this, click on the player icon).

{% cut "Example of a correctly configured game" %}

![](../../_images/requirements/1-6-browser-player/pc-screenshot.webp)

{% endcut %}
