# Interface: CallsOptions

Defined in: [packages/calls/src/calls.ts:50](https://github.com/leifriksheim/minca/blob/main/calls/src/calls.ts#L50)

Options for `createCalls` and `CallsProvider`. Rarely needed but in tests.

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-createconnection"></a> `createConnection?` | `readonly` | (`config`) => `RTCPeerConnection` | How a WebRTC connection is made. `new RTCPeerConnection` by default. | [packages/calls/src/calls.ts:52](https://github.com/leifriksheim/minca/blob/main/calls/src/calls.ts#L52) |
| <a id="property-createstream"></a> `createStream?` | `readonly` | (`tracks`) => `MediaStream` \| `null` | How a set of tracks becomes something a `<video>` can show. `new MediaStream` by default. | [packages/calls/src/calls.ts:58](https://github.com/leifriksheim/minca/blob/main/calls/src/calls.ts#L58) |
| <a id="property-getdisplaymedia"></a> `getDisplayMedia?` | `readonly` | (`constraints`) => `Promise`\<`MediaStream`\> | The screen, for sharing it. `navigator.mediaDevices.getDisplayMedia` by default. | [packages/calls/src/calls.ts:56](https://github.com/leifriksheim/minca/blob/main/calls/src/calls.ts#L56) |
| <a id="property-getusermedia"></a> `getUserMedia?` | `readonly` | (`constraints`) => `Promise`\<`MediaStream`\> | Camera and microphone. `navigator.mediaDevices.getUserMedia` by default. | [packages/calls/src/calls.ts:54](https://github.com/leifriksheim/minca/blob/main/calls/src/calls.ts#L54) |
| <a id="property-gonems"></a> `goneMs?` | `readonly` | `number` | How long without hearing that someone is gone. Default 15 s. | [packages/calls/src/calls.ts:64](https://github.com/leifriksheim/minca/blob/main/calls/src/calls.ts#L64) |
| <a id="property-heartbeatms"></a> `heartbeatMs?` | `readonly` | `number` | How often you say you're in a call. Default 5 s. | [packages/calls/src/calls.ts:62](https://github.com/leifriksheim/minca/blob/main/calls/src/calls.ts#L62) |
| <a id="property-ringms"></a> `ringMs?` | `readonly` | `number` | How long a ring rings before it's a missed call. Default 45 s. | [packages/calls/src/calls.ts:66](https://github.com/leifriksheim/minca/blob/main/calls/src/calls.ts#L66) |
| <a id="property-storage"></a> `storage?` | `readonly` | \| `Pick`\<`Storage`, `"getItem"` \| `"setItem"` \| `"removeItem"`\> \| `null` | Where the call you're in is remembered, to offer rejoining after a reload. `sessionStorage` by default, under `minca-call`; null for nowhere. | [packages/calls/src/calls.ts:60](https://github.com/leifriksheim/minca/blob/main/calls/src/calls.ts#L60) |
