Skip to content
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

Chrome 132 supports Element Capture API #25232

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

chrisdavidmills
Copy link
Contributor

Summary

Chrome 132 supports the Element Capture API; see https://chromestatus.com/feature/5198989277790208, and also see https://developer.chrome.com/blog/chrome-132-beta#element_capture.

Element Capture is an extension to the Screen Capture API that allows developers to restrict the captured stream to a particular DOM element.

Specifically, this PR adds:

  • api.BrowserCaptureMediaStreamTrack.restrictTo
  • api.RestrictionTarget
  • api.RestrictionTarget.fromElement_static

I decided to add these manually because the Chrome 132 beta collector run didn't pick them up. I hope that's OK.

Test results and supporting details

Related issues

See also mdn/content#36939 for the associated content addition.

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:l [PR only] 101-1000 LoC changed labels Nov 26, 2024
Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran the collector against the latest Chrome 132 beta and I can confirm this data. Maybe it wasn't yet in beta 2 weeks ago when I submitted #25070 but I can see it enabled in beta now. Thank you! 👍

@Elchi3 Elchi3 merged commit 388e195 into mdn:main Nov 27, 2024
6 checks passed
@mdn-bot mdn-bot mentioned this pull request Nov 27, 2024
@chrisdavidmills chrisdavidmills deleted the chrome-132-element-capture-api branch November 27, 2024 10:23
@chrisdavidmills
Copy link
Contributor Author

I ran the collector against the latest Chrome 132 beta and I can confirm this data. Maybe it wasn't yet in beta 2 weeks ago when I submitted #25070 but I can see it enabled in beta now. Thank you! 👍

Great stuff, thanks a lot @Elchi3! ❤️

Copy link
Contributor

@beaufortfrancois beaufortfrancois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:l [PR only] 101-1000 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants