Skip to content

🎥 Make videos programmatically with React

fix it up

Jonny Burgereb9ef1eb4280
diff --git a/packages/docs/docs/player/api.md b/packages/docs/docs/player/api.md
index bb02d6c0cd..c135020d5d 100644
--- a/packages/docs/docs/player/api.md
+++ b/packages/docs/docs/player/api.md
@@ -385,11 +385,15 @@ _optional_
If true, displays the player controls at all times even if the mouse is outside the player area. Default `false`.
-### `showPlaybackControl`<AvailableFrom v="3.3.98" />
+### `showPlaybackRateControl`<AvailableFrom v="3.3.98" />
_optional_
-If true, displays the control to change playback rate. Default `false`.
+If `true`, displays a gear icon allowing the user to change the playback rate.
+
+You may pass an array with the available playback rates for selection, however, updating the list dynamically is not supported. `true` is an alias for `[0.5, 0.8, 1, 1.2, 1.5, 1.8, 2, 2.5, 3]`.
+
+Default `false`.
## `PlayerRef`
diff --git a/packages/player-example/src/App.tsx b/packages/player-example/src/App.tsx
index d0cd876437..33d76986f6 100644
--- a/packages/player-example/src/App.tsx
+++ b/packages/player-example/src/App.tsx
@@ -336,7 +336,7 @@ const ControlsOnly: React.FC<{
setShowPlaybackControl(!showPlaybackControl);
}}
>
- showPlaybackRateControls = {String(showPlaybackControl)}
+ showPlaybackRateControl = {String(showPlaybackControl)}
</button>
<br />
<button type="button" onClick={() => ref.current?.mute()}>