Skip to content

Commit

Permalink
docs: add enableSmoothSeeking option
Browse files Browse the repository at this point in the history
Documents the `enableSmoothSeeking` option introduced in videojs 8.9.0.

Refers videojs/video.js#8287
  • Loading branch information
amtins committed Jan 7, 2024
1 parent e189b0d commit 75e3245
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/mdx-pages/guides/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,31 @@ Currently this is available in Chrome 111+ as an origin trial.

This is a different picture-in-picture mode than has previously been available, where the entire player element is windowed rather than just the video itself. Since there are scenarios where it would be desirable to allow PiP on the player but not PiP on the video alone (such as ads, overlays), the `disablePictureInPicture` option **only** disables the old-style picture-in-picture mode on the video.

### `enableSmoothSeeking`

> Type: `boolean`
> Default: `false`
_Since 8.9.0_

If set to `true`, will provide a smoother seeking experience on mobile and desktop devices.

The following will enable the smooth seeking:

```js
videojs('my-player', {
enableSmoothSeeking: true
});
```

Can also be modified after player creation:

```js
var player = videojs('my-player');

player.options({ enableSmoothSeeking: true });
```

### `experimentalSvgIcons`

> Type: `boolean`
Expand Down

0 comments on commit 75e3245

Please sign in to comment.