Skip to content

Conversation

@ddbeck
Copy link
Collaborator

@ddbeck ddbeck commented Jan 21, 2025

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Jan 21, 2025
Copy link
Collaborator

@foolip foolip left a comment

Choose a reason for hiding this comment

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

Description could be polished perhaps, but no further review needed.

@@ -0,0 +1,7 @@
name: Element capture
description: The `RestrictionTarget` API captures video from a specific element, excluding content which might occlude the element itself, such as video conferencing controls.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Although you need to call RestrictionTarget.fromElement() first, I think it makes more sense to call out the restrictTo() method as the entrypoint for this feature. Something like

The restrictTo() method for screen capture media track ...

Spelling out exactly what a "screen capture media track" is would be a bit of work, it's a BrowserCaptureMediaStreamTrack which can be returned from getDisplayMedia() (but isn't always IIUC).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think we have to explain that much. Revised with cf5715e. Thank you!

ddbeck and others added 2 commits February 10, 2025 17:23
@ddbeck ddbeck enabled auto-merge (squash) February 10, 2025 16:26
@ddbeck ddbeck merged commit 6770ece into web-platform-dx:main Feb 10, 2025
3 checks passed
@ddbeck ddbeck deleted the element-capture branch February 10, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants