# media.status

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

> Gives a video source's playback: its state, where it is and how long it is.

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

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `source` | `string` | yes | The source's id or name. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `state` | `string` | no | `none`, `playing`, `opening`, `buffering`, `paused`, `stopped`, `ended` or `error`. |
| `time_ms` | `number` | no | Where it is. |
| `duration_ms` | `number` | no | How long it is. |

## Errors

Not found (-32004) for an unknown source. Invalid params (-32602) when it isn't a media source.

## From an AI agent

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

## Related

- [media.action](https://docs.lightair.app/developers/remote-api/media.action.md)
- [source.get](https://docs.lightair.app/developers/remote-api/source.get.md)
