Re: [mediacapture-screen-share] Allow applications to opt-out of source-change (#223)

> Chrome currently offers an extension API that presents a Share this tab instead button.

Nice feature! Why isn't Chrome offering it in getDisplayMedia? I thought that's what https://github.com/w3c/mediacapture-screen-share/pull/170 was for.

> What about applications that rely on tight-coupling with the captured tab?

I'd say such applications are mistaken. There's no API I know of that allows tight coupling between an app and a tab.

[CaptureHandle](https://w3c.github.io/mediacapture-handle/identity/index.html#capture-handle) allows tight coupling with a _captured application_, not its tab. Yes, the user agent is obligated to fire the [capturehandlechange](https://w3c.github.io/mediacapture-handle/identity/index.html#capturehandlechange) event when that apps' tab is navigated to replace it, but that's fairly abstract: you switch from interacting with one captured app to the next (one that supports interacting).

> A change of source breaks that connection.

How is that different from the user navigating the captured tab?

> The capturing application can detect that using Capture Handle, but what can it do then?

The same thing it does when the user navigates the captured tab today?

> Inform the user why some features suddenly disappear?!

Features tied to a captured application disappearing when the captured application disappears, seems like it works as intended. Can you rephrase as a problem?

It seems to me user agents can implement a "Share this tab instead" in-browser button today, by firing the `capturehandlechange` event when capture transitions from documentA in tabA to documentB in tabB, just as if the user navigated tabA from documentA to documentB.

Features backed by CaptureHandle should then "just work" if documentB supports them, and disappear otherwise, just like today. Is anything undesirable about that?

I see no reason for new API surface.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/223#issuecomment-1121519024 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 9 May 2022 20:00:42 UTC