ReferenceMenus
media-playback-rate-radio-group
A menu radio group for selecting playback speed
Creates radio items from the player playback rate state and selects the playback speed.
Import
Anatomy
Behavior
The group is available when the configured media exposes playback rates. Option labels default to the rate followed by a multiplication sign (e.g. 1.5×); pass formatRate to customize them.
<media-playback-rate-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 Playback rate. Override it with aria-label or aria-labelledby.
Examples
Basic usage
API Reference
media-playback-rate-radio-group
Menu radio group that generates a <media-menu-radio-item> per available playback rate and shares the selected label
and availability with an enclosing menu. An optional <template> holding one <media-menu-radio-item> customizes
each generated item.