Skip to content
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

Conditional Focus (When Display-Capture Starts) #679

Closed
1 task done
eladalon1983 opened this issue Sep 22, 2021 · 11 comments
Closed
1 task done

Conditional Focus (When Display-Capture Starts) #679

eladalon1983 opened this issue Sep 22, 2021 · 11 comments
Assignees
Labels
Progress: pending external feedback The TAG is waiting on response to comments/questions asked by the TAG during the review Topic: media Venue: WebRTC WebRTC and media capture Venue: WICG

Comments

@eladalon1983
Copy link

eladalon1983 commented Sep 22, 2021

Braw mornin' TAG!

I'm requesting a TAG review of Conditional Focus.

When an application starts capturing a display-surface, the user agent faces a decision - should the captured display-surface be brought to the forefront, or should the capturing application retain focus.

The user agent is mostly agnostic of the nature of the capturing and captured applications, and is therefore ill-positioned to make an informed decision.

In contrast, the capturing application is familiar with its own properties, and is therefore better suited to make this decision. Moreover, by reading displaySurface and/or using Capture Handle, the capturing application can learn about the captured display-surface, driving an even more informed decision.

Further details:

  • I have reviewed the TAG's Web Platform Design Principles
  • Relevant time constraints or deadlines: N/A
  • The group where the work on this specification is currently being done: WebRTC WG
  • The group where standardization of this work is intended to be done (if current group is a community group or other incubation venue): WebRTC WG and/or WICG
  • Major unresolved issues with or opposition to this specification: N/A
  • This work is being funded by: Google

You should also know that...

We'd prefer the TAG provide feedback as (please delete all but the desired option):

💬 leave review feedback as a comment in this issue and @-notify @eladalon1983

@torgo torgo added this to the 2021-09-27-week milestone Sep 22, 2021
@plinss plinss changed the title Conditional Focus (Wehn Display-Capture Starts) Conditional Focus (When Display-Capture Starts) Sep 27, 2021
@torgo
Copy link
Member

torgo commented Sep 28, 2021

Hi @eladalon1983 - Looking at the thread in WebRTC, it looks like this is still under active discussion. If so, it seems like it might be premature for the TAG to be reviewing this? Is the plan to incubate this in WICG and then bring it to WebRTC for a future WebRTC rechartering?

@torgo torgo modified the milestones: 2021-09-27-week, 2021-12-13 Dec 7, 2021
@torgo torgo added Progress: pending external feedback The TAG is waiting on response to comments/questions asked by the TAG during the review and removed Progress: in progress labels Dec 7, 2021
@torgo torgo modified the milestones: 2021-12-13, 2021-12-06-F2F-Madripoor Dec 7, 2021
@rhiaro
Copy link
Contributor

rhiaro commented Dec 7, 2021

Hello, @torgo and I are looking at this in our virtual face-to-face today. We noticed the problem statement in the explainer is from the perspective of the user agent, rather than the end user. Would you mind adding some examples/use cases/scenarios of how the end user of an application benefits or is affected by this feature? We appreciate that you have noted one security concern in the explainer; do you have an idea of when you will be able to complete the privacy and security questionnaire? Are you expecting to take this work to the WebRTC WG?

@eladalon1983
Copy link
Author

eladalon1983 commented Dec 8, 2021

Hi @eladalon1983 - Looking at the thread in WebRTC, it looks like this is still under active discussion. If so, it seems like it might be premature for the TAG to be reviewing this? Is the plan to incubate this in WICG and then bring it to WebRTC for a future WebRTC rechartering?

It's being incubated in the WICG at the same time as it's presented to the WebRTC WG. (It's also in origin trial in Chrome starting m96.) We've had some fruitful discussions in the WebRTC WG and I am hoping we'll reach a mutually agreed-upon API shape in January or possibly earlier.

Hello, @torgo and I are looking at this in our virtual face-to-face today. We noticed the problem statement in the explainer is from the perspective of the user agent, rather than the end user. Would you mind adding some examples/use cases/scenarios of how the end user of an application benefits or is affected by this feature?

I can rephrase this with the next revision, no problem. Could you share more of your thoughts about the phrasing? For example, I took a look at the Web Cryptography API and it looked to me to also be centered around the user agent and the applications, not the user. The way I see it, in both cases, the benefit to users is applications can serve them better. In the case of Conditional Focus, this better service is through less distractions thrown the user's way, and less clicks required of the user, when they are engaged in something as mentally-challenging as presenting to a live audience. Would adding an explicit shout-out of this fact at the end of the Problem Description section be sufficient?

We appreciate that you have noted one security concern in the explainer; do you have an idea of when you will be able to complete the privacy and security questionnaire? Are you expecting to take this work to the WebRTC WG?

Presently, I expect to do that after the final shape is agreed upon in WebRTC WG discussions.

@rhiaro
Copy link
Contributor

rhiaro commented Dec 8, 2021

this better service is through less distractions thrown the user's way, and less clicks required of the user, when they are engaged in something as mentally-challenging as presenting to a live audience

Thanks, that's exactly the kind of language we like to see in an explainer. It can also be helpful to walk us through how someone interacts with the feature from first principles, assuming little prior familiarity with the details of the work. (If you haven't already seen it, there are some links to good explainers in the explainer explainer.)

@torgo torgo modified the milestones: 2021-12-06-F2F-Madripoor, 2022-01-31 Jan 30, 2022
@torgo
Copy link
Member

torgo commented Feb 1, 2022

Hi @eladalon1983 - can you let us know status on the API shape (and security & privacy questionnaire response)? Also have you thought any more about documenting the user need - rephrasing and expanding the use case from an end-user perspective - as @rhiaro mentioned above?

@eladalon1983
Copy link
Author

(Apologies for still not responding, but I am prioritizing other work. Please leave this open. I intend to get back to this in the next few weeks.)

@torgo torgo modified the milestones: 2022-01-31, 2022-04-04-week Mar 30, 2022
@torgo
Copy link
Member

torgo commented Apr 5, 2022

Hi @eladalon1983 just pinging on this. Has there been any update we should be aware of?

@torgo torgo modified the milestones: 2022-04-04-week, 2022-04-18-week Apr 5, 2022
@eladalon1983
Copy link
Author

Sorry, still in the pipeline.

@torgo
Copy link
Member

torgo commented Jun 28, 2022

Hi @eladalon1983 we're going to close this for now just to keep our agendas in order. Can you ping us when you're ready for us to re-open and review?

@torgo torgo closed this as completed Jun 28, 2022
@eladalon1983
Copy link
Author

Will do.

@eladalon1983
Copy link
Author

Can you ping us when you're ready for us to re-open and review?

Following discussions in the WebRTC WG, the API was reshaped. The new shape is visible in these PRs:

I'll be updating the explainer soon.
Please take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Progress: pending external feedback The TAG is waiting on response to comments/questions asked by the TAG during the review Topic: media Venue: WebRTC WebRTC and media capture Venue: WICG
Projects
None yet
Development

No branches or pull requests

4 participants