I'm trying to build a screen recording application similar to Screen Studio, but I'm facing challenges with the cursor. It seems to always get baked into the video, and whenever I apply a custom cursor, it just overlays the default cursor, resulting in two cursors appearing during movement. How does Screen Studio handle this? Is this cursor behavior specific to macOS, or can it be managed on Windows as well? I'm using an Electron app, not Tauri. I've noticed that hiding the cursor makes it difficult for users to navigate, and sometimes Windows brings back the default cursor unexpectedly. Is there a solution to this?
1 Answer
To tackle the cursor issue, you shouldn't just hide it; instead, look into capturing the screen without including the cursor at the OS level. You can do this with a lower-level API or a specific screen capture flag that excludes the default cursor rendering. Then, create a custom cursor layer that syncs with the mouse events you record, avoiding the dual cursor problem altogether.

That makes sense, but it sounds pretty tough to implement. I might need to explore those APIs.