Skip to content

Commit 9f5211b

Browse files
authored
docs(guides): click/doubleClick options don't work if controls:false (#157)
Updates based on videojs/video.js#7875
1 parent 154b75b commit 9f5211b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mdx-pages/guides/options.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ Defines the order in which Video.js techs are preferred. By default, this means
425425

426426
> Type: `boolean|function`
427427
428-
Controls how clicking on the player/tech operates. If set to `false`, clicking is disabled and will no longer cause the player to toggle between paused and playing.
428+
Controls how clicking on the player/tech operates. If set to `false`, clicking is disabled and will no longer cause the player to toggle between paused and playing. If controls are disabled with `controls: false`, this will not call the handler function.
429429

430430
```js
431431
videojs('my-player', {
@@ -479,7 +479,7 @@ videojs('my-player', {
479479

480480
> Type: `boolean|function|object`
481481
482-
Controls how player-wide hotkeys operate. If set to `false`, or `undefined`, hotkeys are disabled. If set to `true` or an object (to allow definitions of `fullscreenKey` etc. below), hotkeys are enabled as described below. To override the default hotkey handling, set `userActions.hotkeys` to a function which accepts a `keydown` event:
482+
Controls how player-wide hotkeys operate. If set to `false`, or `undefined`, hotkeys are disabled. If set to `true` or an object (to allow definitions of `fullscreenKey` etc. below), hotkeys are enabled as described below. To override the default hotkey handling, set `userActions.hotkeys` to a function which accepts a `keydown` event. If controls are disabled with `controls: false`, this will not call the handler function.
483483

484484
```js
485485
var player = videojs('my-player', {

0 commit comments

Comments
 (0)