-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Add documentation for Screen Capture extensions, element capture and region capture #36939
base: main
Are you sure you want to change the base?
Add documentation for Screen Capture extensions, element capture and region capture #36939
Conversation
mdn/mdn#580 could be close with this PR |
Cool, thanks for the heads-up @skyclouds2001. I'll update the description to mention it. |
…ls/content into region-and-element-capture
files/en-us/web/api/browsercapturemediastreamtrack/cropto/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/browsercapturemediastreamtrack/clone/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/screen_capture_extensions/element_region_capture/index.md
Show resolved
Hide resolved
|
||
This could be a major problem if that content is private, for example message notifications or speaker notes. If you can't guarantee that your app can keep private content from being shared, then you may lose trust in your users. | ||
|
||
As a result, it is generally recommended that you use the newer Element Capture API over the older Region Capture API, unless you need to support older browser versions that do not support Element Capture. |
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.
I'm not sure that's the right conclusion we aimed regarding these two APIs.
My understanding is that both APIs have legitimate use cases, and that Element Capture does not supersede Region Capture.
FYI @eladalon1983
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.
I'd appreciate some guidance here on what to say here @beaufortfrancois @eladalon1983 — I am not clear on what the distinct use cases are for each.
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.
If it's okay with you, let's wait until mid-January when @eladalon1983 returns, as there's nothing urgent that needs to be addressed immediately.
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.
Sure, that's fine by me. Do you want to get this published before that, and then update with better information once @eladalon1983 returns, or hold off on publication?
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.
Let's hold off if that's okay.
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.
OK, that's fine.
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.
Since this PR is not currently waiting for content review, I just removed requests for content reviewers, otherwise we will get confused :).
Description
Motivation
Chrome supports extensions to the Screen Capture API that allow developers to limit the region of the capture. Namely, these are:
This PR adds documentation for these extensions under a new tree "Screen Capture extensions", which I felt was preferable to adding a separate docs tree for multiple APIs that do very similar things.
Additional details
Related issues and pull requests
Fixes mdn/mdn#580
dom-examples
addition: Add DOM examples for Screen Capture API dom-examples#285. The linked demos won't work until this PR is merged.