Cap
Cap copied to clipboard
Deep-Link commands
This is a continuation of #48
Adds deep-link commands for
- signin
- start-recording
Takes:
- Recording mode:
mode: "screen" | "area" | "window" - Target name:
target_native_name: string - Camera:
camera_label: string - Microphone:
audio_input_name: string - FPS:
fps: number - Output Resolution:
{width}x{height}
- Recording mode:
- stop-recording
- open-editor
Takes:
- Project ID:
id: number
- Project ID:
It takes a host name of action and a single parameter value which is the JSON value of the respective DeepLinkAction
Example json to start a recording:
{
"start_recording": {
"mode": "window",
"target_native_name": "arc.app",
"audio_input_name": "Macbook Pro Microphone",
"camera_label": null,
"fps": 60,
"target_resolution": {
"width": 1920,
"height": 1080
}
}
}
Encoded:
cap-desktop://action?value=%7B%0A%20%22start_recording%22%3A%20%7B%0A%20%20%22mode%22%3A%20%22window%22%2C%0A%20%20%22target_native_name%22%3A%20%22arc.app%22%2C%0A%20%20%22audio_input_name%22%3A%20%22Macbook%20Pro%20Microphone%22%2C%0A%20%20%22camera_label%22%3A%20null%2C%0A%20%20%22fps%22%3A%2060%2C%0A%20%20%22target_resolution%22%3A%20%7B%20width%3A%201920%2C%20height%3A%201080%20%7D%0A%20%7D%0A%7D
This is mainly to support the new Raycast extension.
TODO:
- [ ] Might require more validation for resolution and fps inputs.
- [ ] Testing
Differences with #241 Handles sign-in as part of the general deep-link handler on the backend.
@ItsEeleeya is attempting to deploy a commit to the Cap Software Inc Team on Vercel.
A member of the Team first needs to authorize it.
legend