# stream.status

Source: https://docs.lightair.app/developers/remote-api/stream.status

> Gives whether Lightair is live, and each destination's state, drops, reconnecting and bitrate.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Outputs. Script plugins need the `project.read` permission.

Each destination has `id`, `name`, `enabled`, `platform` (`custom` when none), `canvas`, `active`, `state` (`idle`, `starting`, `active`, `reconnecting`, `stopping` or `failed`), `seconds` live, `error` when it failed, `dropped {network, encoder}`, `total_frames`, `bytes`, and while they apply `reconnect {attempt, retries, seconds_left}`, `bitrate {current_kbps, target_kbps}` and `delay_s`.

## Parameters

None.

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `active` | `boolean` | no | Whether any destination is live. |
| `destinations` | `object[]` | no | Every destination. |

## From an AI agent

The MCP server's `streaming (action: status)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "stream.status", "params": {} }
```

Result:

```json
{ "active": true, "destinations": [{ "id": "019ad3f5-4d5e-7f60-b172-8d9e0f1a2b3c", "name": "Twitch", "enabled": true, "platform": "twitch", "canvas": "019ad3f0-0a1b-7c2d-8e3f-4a5b6c7d8e9f", "active": true, "state": "active", "seconds": 812.4, "dropped": { "network": 0, "encoder": 0 }, "total_frames": 48744, "bytes": 609300000, "bitrate": { "current_kbps": 6000, "target_kbps": 6000 } }] }
```

## Related

- [output.list](https://docs.lightair.app/developers/remote-api/output.list.md)
- [stream.start](https://docs.lightair.app/developers/remote-api/stream.start.md)
- [stats.get](https://docs.lightair.app/developers/remote-api/stats.get.md)
