stream.status
Gives whether Lightair is live, and each destination's state, drops, reconnecting and bitrate.
JSON-RPC 2.0project.read
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
- activebooleanWhether any destination is live.
- destinationsobject[]Every destination.
From an AI agent
The MCP server's streaming (action: status) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "stream.status", "params": {}}lightair call stream.statusconst result = lightair.call("stream.status", {});Result
{ "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 } }] }