Controls fullscreen mode. Tries the container element first, then falls back to the media element. Required byDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/videojs/v10/llms.txt
Use this file to discover all available pages before exploring further.
FullscreenButton.
Import
Usage
- React
- HTML
State
Whether the player is currently in fullscreen mode.
Whether fullscreen is supported in the current environment.Possible values:
'available'— Ready to use'unavailable'— Could work but not ready yet'unsupported'— Platform can never support fullscreen
Actions
Enter fullscreen mode. Returns a promise that resolves when fullscreen is active.
Exit fullscreen mode. Returns a promise that resolves when fullscreen is exited.
Selector
UseselectFullscreen to subscribe to only the fullscreen slice of state. Returns undefined if the fullscreen feature is not configured.
- React
- HTML
Required by:
FullscreenButton