- From: Elad Alon via GitHub <sysbot+gh@w3.org>
- Date: Mon, 27 Sep 2021 18:58:59 +0000
- To: public-webrtc-logs@w3.org
> > I am only interested in a per-track method, > > Why, when it is less ergonomic than `stream.focus()`? 1. I have [answered](https://github.com/w3c/mediacapture-screen-share/issues/190#issuecomment-928092589) that question. Please see the bottom of my comment there. 2. Citation needed for one being more ergonomic than the other. (One being less code is not such a significant change in ergonomics. The ergonomics I refer to when I propose `MST.focus` are clarity, not brevity.) 3. I remain (cf. [comment](https://github.com/w3c/mediacapture-screen-share/issues/190#issuecomment-928092589)) open to discussing a per-stream method . The context in which I mentioned "only per-track" was when you asked if I was suggesting ["an attribute _and_ a method"](https://github.com/w3c/mediacapture-screen-share/issues/190#issuecomment-928095773). It was not a blanket "only" for everything one could conceive. It was a clarification that I was not at the time proposing two APIs, as you seemed to think. > I showed an option 1 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: The original motivation I heard for using a global attribute, was that it allows to: 1. Probe the UA's capability before calling gDM. 2. Set a global default that would apply when gDM is called again in the future. So: * I agree that (1) is achieved by the global attribute. * I claimed that (2) loses the ability to raise instructive exceptions. Do you now propose a version of the global that **does** raise exceptions? If so - that loses benefit (2). The UA cannot simultaneously, with a single API, allow the Web-developer to influence the future as well as warn them when they're too late to influence the past. So my question is - which API are you now proposing, and what are its benefits over `MST.focus`? -- GitHub Notification of comment by eladalon1983 Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/190#issuecomment-928181513 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 18:59:01 UTC