Controls
Playback Speed
The RateSelect
and RateSelectItem
components provide an interface for users to adjust the playback speed of the media.
All of the RateSelect
components extend from
@radix-ui/react-select
,
and inherits all of the documentation for those components.
Features
- Composes a dropdown menu for selecting any playback speed, and handles syncing with the underlying media element
- Keyboard navigation (with Radix) and adheres to WAI-ARIA design patterns
Anatomy
Import the components and piece the parts together.
Props
RateSelect
Takes all props of the Radix Select Root component.
RateSelectItem
Takes all props of the Radix Select Item component.
value
Required - denote the playback speed value as a number.
Data Attributes
RateSelect
data-livepeer-rate-select
Identifies the rate select component within the Player.
data-rate
Indicates the selected playback speed value.
RateSelectItem
data-livepeer-rate-select-item
Identifies the rate select item within the Player.