CapSoftware / Cap

Open source Loom alternative. Effortless, instant screen sharing.

Home Page:https://cap.so

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Record a specific window (macOS)

richiemcilroy opened this issue · comments

Requirements

  • When clicking "Window" display option, open a context menu with the names of available windows to capture from (e.g. whatever apps are open, Spotify, Chrome, VSCode, etc...).
  • When an option is selected, focus on that window and bring it into view.
  • When recording, only record the parameters of that Window (size, position, etc).
    -- For now, this can just be done by adding a filter to the Ffmpeg command, or directly editing the raw frame data in media.rs.
  • Show the "Window" display option as the selected option

Screenshot 2024-04-11 at 13 45 26

You can use this guide to help you get started developing locally as quickly as possible.

/bounty $150

💎 $150 bounty • Cap

Steps to solve:

  1. Start working: Comment /attempt #23 with your implementation plan
  2. Submit work: Create a pull request including /claim #23 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to CapSoftware/Cap!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @devrajgadhvi Apr 13, 2024, 8:54:13 AM WIP
🟢 @syedbarimanjan Apr 21, 2024, 4:28:06 PM WIP

I am trying to implement this, currently I am setting up dev environment and then procced with the issue further. Recently found out about Cap from a opensource thread. You can take this as /attempt #23

Out of the two options which one is preferred more? As I am going to learn about both anyway so I will focus on that one more.

@richiemcilroy Is it possible to test this on windows by any chance? Dropped my macbook , it will take sometime to get it back :(

@richiemcilroy Is it possible to test this on windows by any chance? Dropped my macbook , it will take sometime to get it back :(

you will get some errors on windows if you are able to solve them then you are good to go.

commented

For macOS, if we add support for Safari in the web version then in theory we could share the logic with the desktop app?
(I'm not totally sure if the WebKit that's used for the WebView supports this)

I believe one of the benefits to that is how well integrated it is with macOS, which would make implementing and maintaining it much easier. It already lets you easily select a video and gives the same recording options in the menu bar as if you were using FaceTime or some other app like Discord.
Later on this would also work on Linux.

If this is ok instead of doing it with ffmpeg, I'll start working on it.