> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/selphi-biometria-facial/propiedades/cameraid.md).

# cameraId

## Details

**Attribute:** `camera-id`

**Type:** `string`

**Default value:** `""`

## Morphology

```typescript
selphi.cameraId = '3f5e2b1c9a8d7e6f5a4b3c2d1e0f9a8b';
```

## Description

Set the `deviceId` from `MediaDevices` to use a specific camera in `facephi-selphi-widget`. If left empty, the component chooses the camera according to `cameraType` and the device's capabilities.

***

## Example

```jsx
<facephi-selphi-widget
    cameraId={'3f5e2b1c9a8d7e6f5a4b3c2d1e0f9a8b'}
/>
```
