Valora
API Reference@valora-ai/reactindexInterfaces

UseMediaDeviceSelectOptions

Defined in: packages/react/src/hooks/device/useMediaDeviceSelect.ts:10

Properties

kind

kind: MediaDeviceKind;

Defined in: packages/react/src/hooks/device/useMediaDeviceSelect.ts:12

The { kind, room, track, requestPermissions, onError, }.kind property.


onError?

optional onError?: (e) => void;

Defined in: packages/react/src/hooks/device/useMediaDeviceSelect.ts:14

this callback gets called if an error is thrown when failing to select a device and also if a user denied permissions, eventhough the requestPermissions option is set to true. Most

Parameters

ParameterType
eError

Returns

void


requestPermissions?

optional requestPermissions?: boolean;

Defined in: packages/react/src/hooks/device/useMediaDeviceSelect.ts:16

this will call getUserMedia if the permissions are not yet given to enumerate the devices with device labels. in some browsers multiple calls to getUserMedia result in multiple per


room?

optional room?: unknown;

Defined in: packages/react/src/hooks/device/useMediaDeviceSelect.ts:18

The { kind, room, track, requestPermissions, onError, }.room property.


track?

optional track?: unknown;

Defined in: packages/react/src/hooks/device/useMediaDeviceSelect.ts:20

The { kind, room, track, requestPermissions, onError, }.track property.

On this page

Valora is local-first

No API key, no server — everything in this doc runs on-device.

Star on GitHub