FullscreenVideoButtoncomponent
FullscreenVideoButton(): ReactElement | null
| Return | |
|---|---|
ReactElement | null | Rendered fullscreen toggle button, or null when fullscreen is unavailable. |
Button to toggle the surrounding video element in and out of fullscreen.
- Renders
nullwhen the browser does not support the Fullscreen API. - Tracks fullscreen state so the icon and title flip between enter/exit.
Examples
<Video><video src="/clip.mp4" /><VideoButtons><FullscreenVideoButton /></VideoButtons></Video>