record.toggle
Starts recording when not recording, and stops it when recording.
JSON-RPC 2.0outputs.control
Parameters
None.
Result
- activebooleanWhether it's recording now.
- pathstring | nullThe file, when it stopped.
Events
Subscribers to events get record.state, output.changed.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "record.toggle"}lightair call record.toggleconst result = lightair.call("record.toggle", {});