Skip to content

Conversation

@ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Jan 9, 2025

☑️ Resolves

Old approach

  1. Using desktopCapturer get the list of available sources
  2. Promp to choose the source
  3. On Talk side in a special case in IS_DESKTOP instead of usign native getDisplayMedia get stream via getUserMedia for the selected chromeMediaSourceId like video stream

New approach

  1. On Talk side handle getDisplayMedia with a custom handler
  2. In the handler
    • Using desktopCapturer get the list of available sources
    • Promp to choose the source
  3. getDisplayMedia has the source, like in a web-browser

Differences

Pros:

  • No special handling on Talk side
  • Experimental support for native screen sharing source selector on macOS
    • Also allows to get audio stream

Cons:

  • No "Entire desktop with all screens" option for Windows and Linux-no-wayland
  • Issue #…

🖼️ Screenshots

image

🚧 Tasks

  • ...

@ShGKme ShGKme added enhancement New feature or request 2. developing labels Jan 9, 2025
@ShGKme ShGKme self-assigned this Jan 9, 2025
@ShGKme ShGKme force-pushed the feat/screen-sharing-via-displayMediaRequest-handler branch from 72c2647 to ce5e393 Compare January 29, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants