> 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/video-recording-video-grabacion/metodos.md).

# Methods

The Video Provider exposes methods to control the Video Recording and the camera.

### Syntax

```typescript
const video = document.querySelector('facephi-video-provider');

await video.stopVideo();
```

***

## Usage example

```jsx
<facephi-video-provider settings={{ serviceType: 'local' }}>
    <facephi-selphi-widget
        onExtractionFinish={async () => {
            const video = document.querySelector('facephi-video-provider');
            await video.stopVideo();
        }}
    />
</facephi-video-provider>
```

***

## Methods

* [getChannel](/docs.facephi-en/sdks/sdk-web/componentes/video-recording-video-grabacion/metodos/getchannel.md): Gets the active recording channel.
* [setCameraFront](/docs.facephi-en/sdks/sdk-web/componentes/video-recording-video-grabacion/metodos/setcamerafront.md): Selects the front camera.
* [setCameraRear](/docs.facephi-en/sdks/sdk-web/componentes/video-recording-video-grabacion/metodos/setcamerarear.md): Selects the rear camera.
* [stopVideo](/docs.facephi-en/sdks/sdk-web/componentes/video-recording-video-grabacion/metodos/stopvideo.md): Stops the Video Recording.
