Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep-Link commands #243

Open
wants to merge 25 commits into
base: main
Choose a base branch
from

Conversation

ItsEeleeya
Copy link
Contributor

@ItsEeleeya ItsEeleeya commented Jan 19, 2025

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}
  • stop-recording
  • open-editor
    Takes:
    • Project ID: id: number

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.

Copy link

vercel bot commented Jan 19, 2025

@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.

@ItsEeleeya ItsEeleeya changed the title (WIP) Deep-Link commands Deep-Link commands Jan 19, 2025
@ItsEeleeya ItsEeleeya marked this pull request as ready for review January 19, 2025 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant