ReferenceMenus
media-audio-track-radio-group
A menu radio group for selecting an audio track
Creates radio items from the player audio track state and selects the enabled track.
Import
Anatomy
Behavior
The group is available when the configured media exposes more than one audio track. Labels use the track label, then language, then kind. Pass formatTrack to customize the visible labels.
<media-audio-track-radio-group> generates <media-menu-radio-item> children. Add an optional <template> with a single <media-menu-radio-item> to customize each generated item.
Styling
Unavailable groups receive the native hidden attribute.
Accessibility
The group uses the menu radio group pattern.
The element receives an accessible label from the label property or defaults to Audio.
Examples
Basic usage
API Reference
media-audio-track-radio-group
Menu radio group that generates a <media-menu-radio-item> per available audio track and shares the selected label
and availability with an enclosing menu. An optional <template> holding one <media-menu-radio-item> customizes
each generated item.