Skip to content

Implement electron.DesktopCapturer.SetSkipCursor(DesktopCapturerSource.id) #23923

Open

Description

@CapOM

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

Until https://bugs.chromium.org/p/chromium/issues/detail?id=1007177 is implemented we need a way to hide the cursor when capturing a Window. And we need to hide and show dynamically as the source continued to be captured (i.e. without restarting the capture)

Proposed Solution

I have a local patch and I will submit a PR, the api looks like:
electron.DesktopCapturer.SetSkipCursor(DesktopCapturerSource.id)

Alternatives Considered

None

Additional Information

Older bug #7584

Activity

  1. ckerr commented on Jun 8, 2020

    @ckerr
    Member

    @CapOM please submit a PR against master so that @electron/wg-api can review the public API change

  2. CapOM commented on Aug 16, 2020

    @CapOM
    ContributorAuthor

    I will submit a PR in the next weeks

  3. CapOM commented on Aug 24, 2020

    @CapOM
    ContributorAuthor

    PR submitted

  4. gaurav10610 commented on Jun 16, 2021

    @gaurav10610

    It would be great, if this pull request can be merged asap. I've been following the threads with similar feature requests since 2017. Back then I was building a streaming based remote access platform for a company where I used electron to capture desktop screen at server side, but the problem I got stuck at was that when client see the captured desktop video stream at his end then he ends up seeing two mouse cursors i.e one of his own and the other being shown in the desktop video stream.

    That time I was able to get though it by disabling mouse capturing in chromium thereby building a custom build of chromium and then subsequently have to build a custom build of electron too with that chromium, so that when the desktop capturer captures the desktop screen then it eventually doesn't capture mouse cursor and the resulting desktop video stream doesn't contains the mouse cursor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions