1
0
mirror of https://github.com/videojs/video.js.git synced 2025-11-06 09:19:15 +02:00

feat(fs): support FullscreenOptions (#5856)

On browsers that implement the Unprefixed Fullscreen API, pass a FullscreenOptions dictionary to requestFullscreen.

Add `fullscreenOptions` option with default value of `{navigationUI: 'hide'}` to player.
See https://fullscreen.spec.whatwg.org/#dictdef-fullscreenoptions
This commit is contained in:
Austin Morton
2019-06-17 14:05:22 -04:00
committed by Gary Katsevman
parent 2878c1d0d4
commit 631ac3b68d
5 changed files with 243 additions and 19 deletions

View File

@@ -29,6 +29,7 @@
* [languages](#languages)
* [nativeControlsForTouch](#nativecontrolsfortouch)
* [notSupportedMessage](#notsupportedmessage)
* [fullscreenOptions](#fullscreenoptions)
* [playbackRates](#playbackrates)
* [plugins](#plugins)
* [responsive](#responsive)
@@ -277,6 +278,13 @@ 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.
### `fullscreenOptions`
> Type: `Object`
> Default: `{navigationUI: 'hide'}`
See [The Fullscreen API Spec](https://fullscreen.spec.whatwg.org/#dictdef-fullscreenoptions) for more details.
### `playbackRates`
> Type: `Array`