Video Quality
The VideoQualitySelect
and VideoQualitySelectItem
components allow viewers to select the desired video quality during media playback.
All of the VideoQualitySelect
components extend from
@radix-ui/react-select
,
and inherits all of the documentation for those components.
Features
- Synchronizes state with the HTML5 video element
- Adheres to WAI-ARIA design patterns
- Persists to
localStorage
by default (with storage overrides customizable inRoot
)
Anatomy
Import the components and piece the parts together.
Props
VideoQualitySelect
Takes all props of the Radix Select Root component.
VideoQualitySelectItem
Takes all props of the Radix Select Item component.
value
The VideoQuality
enum value representing the video quality that the item
corresponds to. This must be provided to ensure correct selection behavior.
This can be of the type:
"auto" | "1080p" | "720p" | "480p" | "360p" | "240p" | "144p"
Data Attributes
VideoQualitySelect
data-livepeer-quality-select
Serves to identify the component’s role within the Player.
data-video-quality
Indicates the current video quality selection, matching the value of the
selected VideoQualitySelectItem
.
This can be of the type:
"auto" | "1080p" | "720p" | "480p" | "360p" | "240p" | "144p"
VideoQualitySelectItem
data-livepeer-quality-select-item
Serves to identify the component’s role within the Player.