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.
localStorage
by default (with storage overrides customizable in
Root
)Import the components and piece the parts together.
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"
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.
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.
localStorage
by default (with storage overrides customizable in
Root
)Import the components and piece the parts together.
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"
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.