We introduce a new API - navigator.mediaDevices.getCurrentBrowsingContextMedia(). This API allows capturing a MediaStream with the current tab's video (and potentially audio), similar to getDisplayMedia(). Unlike getDisplayMedia(), calling this new function will (eventually) present the user with a simple accept/reject dialog. If the user accepts, the current tab will be captured. In all other ways, getCurrentBrowsingContextMedia() will be identical to getDisplayMedia().
However, this feature is under active discussion in the WebRTC WG. The main point of contention is the security measures necessary to be adopted to unlock a confirmation-only flow. We intend to ship an explicit-selection flow first, which will be the fallback behavior for applications that do not fulfil the security requirements for the confirmation-only flow. Once the security measures of the confirmation-only flow are decided, specified and implemented, we will ship the confirmation-only flow, too.
Gecko: Positive signals for the feature's general direction (current-tab-capture) but strong disagreement over the necessary security requirements. This led to a split of this feature into two - (a) getViewportMedia (still being debated), over which there is general agreement, and (b) prefer-current-tab, to which Mozilla objects.
Prove usefulness of the feature to early adopters (e.g. Google Workspace).
Receive feedback over changes necessary to the feature.
Pave way to additional features currently planned for development based on this feature. (E.g. region-capture.)
Google Docs and Slides were very happy with the new API and were using it extensively. However, while they had advanced notice, other web developers have not had sufficient time to hear about this experiment and set up code to use it. We intend to rectify this by posting a blog entry to web.dev and conducting more extensive developer outreach.
As mentioned above at more length, we are currently only experimenting over the explicit-selection flow. The confirmation-only flow will be developed at a later time.
Contact emails
Explainer Repeated from I2E
bit.ly/3nnH9yL (We're extending the old version; do not follow the link to the new version.)Specification Repeated from I2E
https://github.com/w3c/mediacapture-screen-share/pull/148However, this feature is under active discussion in the WebRTC WG. The main point of contention is the security measures necessary to be adopted to unlock a confirmation-only flow. We intend to ship an explicit-selection flow first, which will be the fallback behavior for applications that do not fulfil the security requirements for the confirmation-only flow. Once the security measures of the confirmation-only flow are decided, specified and implemented, we will ship the confirmation-only flow, too.Summary Repeated from I2E
We introduce a new API - navigator.mediaDevices.getCurrentBrowsingContextMedia(). This API allows capturing a MediaStream with the current tab's video (and potentially audio), similar to getDisplayMedia(). Unlike getDisplayMedia(), calling this new function will (eventually) present the user with a simple accept/reject dialog. If the user accepts, the current tab will be captured. In all other ways, getCurrentBrowsingContextMedia() will be identical to getDisplayMedia().
However, this feature is under active discussion in the WebRTC WG. The main point of contention is the security measures necessary to be adopted to unlock a confirmation-only flow. We intend to ship an explicit-selection flow first, which will be the fallback behavior for applications that do not fulfil the security requirements for the confirmation-only flow. Once the security measures of the confirmation-only flow are decided, specified and implemented, we will ship the confirmation-only flow, too.
Blink component Repeated from I2E
Blink>GetDisplayMediaSearch tags Repeated from I2E
getDisplayMedia, capture, getCurrentBrowsingContextMedia, share, sharingTAG review Updated from I2E
TAG reviewTAG review status Repeated from I2E
PendingRisks
Interoperability and Compatibility Updated from I2E
Gecko: Positive signals for the feature's general direction (current-tab-capture) but strong disagreement over the necessary security requirements. This led to a split of this feature into two - (a) getViewportMedia (still being debated), over which there is general agreement, and (b) prefer-current-tab, to which Mozilla objects.
WebKit: No signal
Web developers: Positive signals.
Goals for experimentation Repeated from I2E
Prove usefulness of the feature to early adopters (e.g. Google Workspace).
Receive feedback over changes necessary to the feature.
Pave way to additional features currently planned for development based on this feature. (E.g. region-capture.)
Reason this experiment is being extended New Field
Google Docs and Slides were very happy with the new API and were using it extensively. However, while they had advanced notice, other web developers have not had sufficient time to hear about this experiment and set up code to use it. We intend to rectify this by posting a blog entry to web.dev and conducting more extensive developer outreach.
WebKit "no signal" based on this unterminated thread on their mailing list. I have asked for the formal position, and they responded with questions but not official position was formalized by them after I gave my answers.Web-developer positive signals I have from out-of-band discussions over VC with some partners. I have encouraged them to state their position publicly, hope they do so in the future.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/620210e2-8202-4718-8b97-5b6beb862ebfn%40chromium.org.