Re: [mediacapture-screen-share] Conditional Focus (When Display-Capture Starts) (#190)

> I am only interested in a per-track method,

Why, when it is less ergonomic than `stream.focus()`? 

> Rather, the problem arises because that global-attribute API is always valid to manipulate.

I showed an [option 1](https://github.com/w3c/mediacapture-screen-share/issues/190#issuecomment-928095773) above that would throw outside the same envelope, to show there's no need to subclass MST here.

From my end, the conversation has led to the options I show (1 and 2) which I think capture the remaining open question:

Would we rather offer JS a default value, or a clear exception when JS misses an (obvious) time window, or both (at the cost of double the API surface)?

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


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

Received on Monday, 27 September 2021 17:54:30 UTC