Controls picture-in-picture mode. 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.
PiPButton.
Import
Usage
- React
- HTML
State
Whether the player is currently in picture-in-picture mode.
Whether picture-in-picture is supported in the current environment.Possible values:
'available'— Ready to use'unavailable'— Could work but not ready yet'unsupported'— Platform can never support PiP (e.g. iOS Safari)
Actions
Enter picture-in-picture mode. Returns a promise that resolves when PiP is active.
Exit picture-in-picture mode. Returns a promise that resolves when PiP is exited.
Selector
UseselectPiP to subscribe to only the PiP slice of state. Returns undefined if the pip feature is not configured.
- React
- HTML
Required by:
PiPButton