Skip to content

Commit

Permalink
docs: Document playbackRates (#4602)
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine authored and gkatsev committed Sep 19, 2017
1 parent 7929677 commit 9d249bb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/guides/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* [languages](#languages)
* [nativeControlsForTouch](#nativecontrolsfortouch)
* [notSupportedMessage](#notsupportedmessage)
* [playbackRates](#playbackrates)
* [plugins](#plugins)
* [sourceOrder](#sourceorder)
* [sources](#sources)
Expand Down Expand Up @@ -180,6 +181,24 @@ Explicitly set a default value for [the associated tech option](#nativecontrolsf
Allows overriding the default message that is displayed when Video.js cannot play back a media source.

### `playbackRates`

> Type: `Array`
An array of numbers strictly greater than 0, where 1 means regular speed
(100%), 0.5 means half-speed (50%), 2 means double-speed (200%), etc.
If specified, Video.js displays a control (of class `vjs-playback-rate`)
allowing the user to choose playback speed from among the array of choices.
The choices are presented in the specified order from bottom to top.

For example:

```js
videojs('my-player', {
playbackRates: [0.5, 1, 1.5, 2]
});
```

### `plugins`

> Type: `Object`
Expand Down

0 comments on commit 9d249bb

Please sign in to comment.