> 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/stopvideo.md).

# stopVideo

Stops video recording and returns the blob in local mode.

## Details

Stops the video recording process.

### Syntax

**Name:** `stopVideo`

**Type:** `() => Promise<void | Blob>`

**Returns:** `Promise<void | Blob>`

## Description

Ends the recording. In `local`, it returns a `Blob` with the captured video. The asset is automatically sent to the SDK's tracking pipeline.

### Considerations

Call this method when the extraction flow of the child widgets has finished (for example, after `extractionFinish`).

***

## Example

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