# Browser SDK

Para utilizar las salas deberás hacer uso de nuestro [WebRTC](/es-developers/sdks/webrtc.md) SDK. Este SDK está compuesto de nuestro componente web [WebRTC](/es-developers/componentes-web/webrtc.md).

Ambos elementos funcionan bajo el SDK, que controla las conexiones e intercambio de mensajes, mientras el componente web renderiza la interfaz de videollamada, controla medios locales y remotos.

Están diseñados para requerir la menor cantidad de código posible, pero al mismo tiempo te entregan la flexibilidad de modificar UI y comportamiento a tus necesidades.

## Cómo usar

Podrás encontrar más detalles de métodos, eventos y propiedades de cada elemento en el [SDK](/es-developers/sdks/webrtc.md) y el [componente web](/es-developers/componentes-web/webrtc.md).

1. Deberás [cargar nuestro SDK](/es-developers/sdks/webrtc.md#instalacion) (el cual contiene el componente web)
2. Obtener un accessToken creando una sala ([Rooms API](/es-developers/vpaas/rooms-api.md#post-vpaas-rooms)) u obteniendo uno nuevo ([Rooms API](/es-developers/vpaas/rooms-api.md#post-vpaas-rooms-roomid-join)).
3. Instanciar WebRTC

```javascript
const response = await fetch('https://mybackend.com/rooms/me');
const { accessToken } = response.json();

const webrtc = new WebRTC();
await webrtc.create(accessToken);
```

{% hint style="info" %}
Por defecto, nuestro SDK insertará el componente `<videsk-webrtc>` en `body`. Puedes encontrar más detalles de este comportamiento acá: [WebRTC](/es-developers/sdks/webrtc.md#argumentos).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.videsk.io/es-developers/vpaas/browser-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
