ReferenceMenus
QualityRadioGroup
A menu radio group for selecting video quality
Creates radio items from the player video rendition state and selects automatic or manual quality.
Import
Anatomy
Behavior
The group is available when the configured media exposes more than one video rendition. The first generated option is Auto; selecting it returns control to adaptive bitrate selection. Pass formatRendition to customize visible rendition labels.
QualityRadioGroup.Root uses useQualityOptions to own selection and renders no element. Wrap the menu’s Menu.Trigger and Menu.Content in it so the trigger inherits the group’s disabled and hidden state and exposes data-availability. QualityRadioGroup.Options renders the items: its required renderItem callback renders the Menu.RadioItem root and receives item state containing the translated label, optional tier and badge, and current checked value. QualityRadioGroup.Value displays the selected label, typically inside the trigger. Options and Value render null when the quality feature is not configured.
The QualityRadioGroup export from the @videojs/react root is a compatibility component that composes Root and Options behind the former single-component props. Prefer the parts for new code.
Styling
Unavailable groups receive the native hidden attribute.
Accessibility
The group uses the menu radio group pattern.
QualityRadioGroup.Options receives its accessible label from the label prop on QualityRadioGroup.Root or defaults to Quality. Override it with aria-label or aria-labelledby on QualityRadioGroup.Options.