File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 26
26
* [ languages] ( #languages )
27
27
* [ nativeControlsForTouch] ( #nativecontrolsfortouch )
28
28
* [ notSupportedMessage] ( #notsupportedmessage )
29
+ * [ playbackRates] ( #playbackrates )
29
30
* [ plugins] ( #plugins )
30
31
* [ sourceOrder] ( #sourceorder )
31
32
* [ sources] ( #sources )
@@ -180,6 +181,24 @@ Explicitly set a default value for [the associated tech option](#nativecontrolsf
180
181
181
182
Allows overriding the default message that is displayed when Video.js cannot play back a media source.
182
183
184
+ ### ` playbackRates `
185
+
186
+ > Type: ` Array `
187
+
188
+ An array of numbers strictly greater than 0, where 1 means regular speed
189
+ (100%), 0.5 means half-speed (50%), 2 means double-speed (200%), etc.
190
+ If specified, Video.js displays a control (of class ` vjs-playback-rate ` )
191
+ allowing the user to choose playback speed from among the array of choices.
192
+ The choices are presented in the specified order from bottom to top.
193
+
194
+ For example:
195
+
196
+ ``` js
197
+ videojs (' my-player' , {
198
+ playbackRates: [0.5 , 1 , 1.5 , 2 ]
199
+ });
200
+ ```
201
+
183
202
### ` plugins `
184
203
185
204
> Type: ` Object `
You can’t perform that action at this time.
0 commit comments