1
0
mirror of https://github.com/videojs/video.js.git synced 2025-10-31 00:08:01 +02:00

fix(liveui): make edge detection less strict, add docs for option (#5661)

Use double the seekable increment for live edge detection.
Add liveui option.
This commit is contained in:
Brandon Casey
2018-12-10 14:13:56 -05:00
committed by Gary Katsevman
parent 98b4a1cf16
commit dce4a2c7d4
3 changed files with 18 additions and 4 deletions

View File

@@ -247,6 +247,18 @@ Learn more about [languages in Video.js][languages]
> **Note**: Generally, this option is not needed and it would be better to pass your custom languages to `videojs.addLanguage()`, so they are available in all players!
### `liveui`
> Type: `boolean`
> Default: `false`
Allows the player to use the new live ui that includes:
* A progress bar for seeking within the live window
* A button that can be clicked to seek to the live edge with a circle indicating if you are at the live edge or not.
Without this option the progress bar will be hidden and in its place will be text that indicates `LIVE` playback. There will be no progress control
and you will not be able click the text to seek to the live edge. `liveui` will default to `true` in a future version!
### `nativeControlsForTouch`
> Type: `boolean`