Skip to content

webContents.getMediaSourceId() not working #44618

Closed as not planned
Closed as not planned

Description

@mtdvlpr

Preflight Checklist

Electron Version

33.2.0

What operating system(s) are you using?

Windows

Operating System Version

Windows 11 Pro version 23H2

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

I expect to get a working stream id that's compatible with navigator.mediaDevices.getDisplayMedia.

Actual Behavior

navigator.mediaDevices.getDisplayMedia gives an error: NotReadableError: Could not start video source

Testcase Gist URL

No response

Additional Information

The docs mention that you have to use navigator.mediaDevices.getUserMedia using a chromeMediaSource of tab, but that API has been changed and can't be used.

How do I use this method to capture not the entire window, but only the webContents as a stream and then stream it in the renderer process?

Activity

  1. moved this to 👀 Unsorted Items in 33-x-yon Nov 12, 2024
  2. codebytere commented on Nov 12, 2024

    @codebytere
    Member

    Thanks for reaching out!

    Because we treat our issues list as the team's backlog, we close issues that are questions since they don't represent a task needing to be completed. This forum is for raising bugs or requesting new features, and for most questions about Electron there are a lot of more appropriate community options. There are helpful people in this Discord or the subreddit that should be willing to point you in the right direction.

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

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions