Skip to content
Changelog

media.action

Plays, pauses, restarts, stops or seeks a video source.

JSON-RPC 2.0project.write

Parameters

  • sourcestringrequiredThe source's id or name.
  • actionstringrequiredplay, pause, restart, stop or seek.
  • msnumberWhere to seek to, in milliseconds. Needed for seek.

Errors

Not found (-32004) for an unknown source. Invalid params (-32602) for an unknown action, or seek without ms.

From an AI agent

The MCP server's media (action: play, pause, restart, stop or seek) reaches this method.

Example

ws://localhost:4455/rpc
{
"jsonrpc": "2.0",
"id": 1,
"method": "media.action",
"params": {
"source": "Intro video",
"action": "restart"
}
}

Result

{}

media.status