Re: [mediacapture-screen-share] getSupportedOptions() (#260)

> Feature detection can be used for these preferences, for instance https://jsfiddle.net/vayrLp85/ is using the fact getDisplayMedia should reject with InvalidStateError outside of a user gesture in Safari.

So if the user happens to click something, we should wait until the transient activation elapses...?
And if the user clicks something again, we have to wait yet more...?
And how would the Web app even know if it has user activation in browsers that don't support `navigator.userActivation.isActive`, like Safari and Firefox?

And if we **do** find a half-way robust way to feature-detect - which we haven't so far - why would we force Web developers to resort to such brittle hacks? Why should we **not** define an elegant, ergonomic, **standard** way of detecting which options are supported?

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


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

Received on Thursday, 23 March 2023 18:02:43 UTC