Skip to content

UseRequestFullscreen

katanakit-js / useRequestFullscreen

function useRequestFullscreen(target?): Promise<void>;

Defined in: infrastructure/viewport/viewport.service.ts:285

Requests fullscreen on the given element (or the document root).

Parameter Type Description
target? HTMLElement The element to make fullscreen (defaults to document.documentElement).

Promise<void>

If fullscreen is not supported.

await useRequestFullscreen(videoElement);