From 823b76ad7230bca2207868206b7cdd425bb16a61 Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Tue, 21 Jan 2025 17:45:32 +0100 Subject: [PATCH 1/2] Add `element-capture` feature Description based on https://developer.chrome.com/docs/web-platform/element-capture --- features/draft/spec/element-capture.yml | 8 -------- features/element-capture.yml | 7 +++++++ features/{draft/spec => }/element-capture.yml.dist | 0 3 files changed, 7 insertions(+), 8 deletions(-) delete mode 100644 features/draft/spec/element-capture.yml create mode 100644 features/element-capture.yml rename features/{draft/spec => }/element-capture.yml.dist (100%) diff --git a/features/draft/spec/element-capture.yml b/features/draft/spec/element-capture.yml deleted file mode 100644 index 22f76129079..00000000000 --- a/features/draft/spec/element-capture.yml +++ /dev/null @@ -1,8 +0,0 @@ -draft_date: 2024-12-02 -name: Element Capture -description: TODO -spec: https://screen-share.github.io/element-capture/ -compat_features: - - api.BrowserCaptureMediaStreamTrack.restrictTo - - api.RestrictionTarget - - api.RestrictionTarget.fromElement_static diff --git a/features/element-capture.yml b/features/element-capture.yml new file mode 100644 index 00000000000..c85d8fab7ad --- /dev/null +++ b/features/element-capture.yml @@ -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. +spec: https://screen-share.github.io/element-capture/ +compat_features: + - api.BrowserCaptureMediaStreamTrack.restrictTo + - api.RestrictionTarget + - api.RestrictionTarget.fromElement_static diff --git a/features/draft/spec/element-capture.yml.dist b/features/element-capture.yml.dist similarity index 100% rename from features/draft/spec/element-capture.yml.dist rename to features/element-capture.yml.dist From cf5715e7cf5374751f013c350d57bbe9b9d4f70d Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Mon, 10 Feb 2025 17:23:22 +0100 Subject: [PATCH 2/2] Revise description based on Philip's feedback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Philip Jägenstedt --- features/element-capture.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/element-capture.yml b/features/element-capture.yml index c85d8fab7ad..2c310c3024b 100644 --- a/features/element-capture.yml +++ b/features/element-capture.yml @@ -1,5 +1,5 @@ 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. +description: The `restrictTo()` method on screen capture media tracks limits capture to a specific element, excluding content which might occlude the element itself, such as video conferencing controls. spec: https://screen-share.github.io/element-capture/ compat_features: - api.BrowserCaptureMediaStreamTrack.restrictTo