New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: instantiate tab video tracks from BrowserCaptureMediaStreamTrack #39074
fix: instantiate tab video tracks from BrowserCaptureMediaStreamTrack #39074
Conversation
💖 Thanks for opening this pull request! 💖 We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
7b3cf9f
to
e4612ca
Compare
@brhenrique apologies for the delay - i've been a little busy but i haven't forgotten about this! i'll try to get to it next week :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that request.requested_video_device_id
might be empty since it is just a request and the video_device.id
is the actual chosen ID.
Congrats on merging your first pull request! 🎉🎉🎉 |
Release Notes Persisted
|
I have automatically backported this PR to "25-x-y", please check out #39617 |
I have automatically backported this PR to "26-x-y", please check out #39618 |
I have automatically backported this PR to "27-x-y", please check out #39619 |
@brhenrique |
@brhenrique |
…electron#39074) return BrowserCaptureMediaStreamTrack instead of MediaStreamTrack
Description of Change
It seems
display_surface
indisplay_media_info
wasn't correctly set when the display media source is a tab, which causesgetDisplayMedia
to return aMediaStreamTrack
instead ofBrowserCaptureMediaStreamTrack
for browser sources.Looking at the uses of
DesktopMediaID::Parse
in Chromium, it looks like the id it's supposed to receive is the id of aMediaStreamSource
instead of the id ofMediaStreamRequest
.With this change, it'll be possible to use the new Region Capture API with tab/browser capturing.
Fixes #36331
Before
After
Checklist
npm test
passesRelease Notes
Notes: support Region Capture API with tab MediaStream