Skip to content

r3f-xr-widgets / UseVideoXRControlsOptions

Interface: UseVideoXRControlsOptions ​

Defined in: src/hooks/useVideoXRControls.ts:22

Configuration options for useVideoXRControls hook

Properties ​

onAction()? ​

optional onAction: (action) => void

Defined in: src/hooks/useVideoXRControls.ts:28

Callback fired when a playback action occurs

Parameters ​

action ​

PlaybackAction

Returns ​

void


requirePointerOnTarget? ​

optional requirePointerOnTarget: boolean

Defined in: src/hooks/useVideoXRControls.ts:26

If true, only trigger controls when pointer is on target

Default ​

ts
true

video? ​

optional video: HTMLVideoElement | null

Defined in: src/hooks/useVideoXRControls.ts:24

HTML video element to control

Released under the MIT License.