> 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/videoid-identificacion-en-video/eventos.md).

# Events

Events emitted by the VideoID Widget component.

The VideoID component emits events throughout its lifecycle so you can handle different scenarios.

## Usage example

```typescript
const widgetRef = document.querySelector('facephi-video-id-widget');

widgetRef.addEventListener('widgetLoaded', handleWidgetLoaded);

function handleWidgetLoaded() {
  console.info('The component is fully loaded and running');
}
```

## Events emitted by VideoID

* [widgetLoaded](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/videoid-identificacion-en-video/eventos/widgetloaded.md): The widget has finished loading and is ready to use.
* [extractionFinish](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/videoid-identificacion-en-video/eventos/extractionfinish.md): The widget has successfully completed the extraction.
* [userCancel](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/videoid-identificacion-en-video/eventos/usercancel.md): The user closed the widget before the extraction process was completed.
* [extractionTimeout](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/videoid-identificacion-en-video/eventos/extractiontimeout.md): The extraction time limit has been exceeded.
* [exceptionCaptured](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/videoid-identificacion-en-video/eventos/exceptioncaptured.md): An error occurred during the capture process.
