> For the complete documentation index, see [llms.txt](https://docs.videsk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.videsk.io/es-developers/vpaas/browser-sdk.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
