<mave-player> automatically surfaces an audio track selector whenever multiple audio tracks are available so viewers can switch between languages, commentaries, or descriptive audio. You can fine-tune when that selector appears, or force it on/off to match your UX needs.
audiotracks attribute| Value | Description |
|---|---|
| auto | (default) Only show the audio selector when more than one track is available. |
| off | Hide the selector entirely, even if multiple tracks are present. |
| on | Force the selector to remain visible as long as the controls list includes audiotracks. |
<mave-player
embed="ubg50LeDE9v86ye"
theme="dolphin"
subtitles="en"
audiotracks="off"
></mave-player>
Remove audiotracks="off" (or set it to "on") to let viewers switch between the available audio languages. You can use this attribute per embed, regardless of the defaults configured in the dashboard.
To show the selector, your controls list must include the audiotracks token (or fall back to the default full controls). Combine both knobs to match the UX you need:
<mave-player
embed="ubg50LeDE9v86ye"
controls="play time seek audiotracks volume fullscreen"
audiotracks="on"
></mave-player>
The controls list governs whether the button is rendered, and the audiotracks attribute governs whether audio-track functionality is allowed.
audiotracks="off" on embeds where alternate-language audio is not helpful (for instance silent explainers) so keyboard users don’t tab through extra controls unnecessarily.This sample embed contains multiple audio tracks so you can try the selector in action.