- From: Lukas Kalbertodt via GitHub <sysbot+gh@w3.org>
- Date: Wed, 29 Apr 2020 14:21:48 +0000
- To: public-webrtc-logs@w3.org
LukasKalbertodt has just created a new issue for https://github.com/w3c/mediacapture-screen-share: == Add possibility to request the same surface stream, but with different constraints (e.g. resolution) == We would like to give our users the option to choose the resolution of their screen recording. We also would like to offer this after the user initially approved the `getDisplayMedia` prompt. It is possible, but currently the browser always prompts the user again on each resolution change. For `getUserMedia` it's possible to avoid this problem by specifying the `deviceId` in the constraints. That way the second `getUserMedia` call returns without the user being prompted. So what I imagine would be: - The video track of stream returned by `getDisplayMedia` has a `surfaceId` in the object returned by `getOptions()`. - The `MediaTrackConstraints` object can specify a `surfaceId`. - If the user already once approved `getDisplayMedia` in this ... "session" (for the lack of a better word) *and* if `surfaceId` is specified in the constraints of the second `getDisplayMedia` call, then the user does not need to (and should not) be prompted again. What do you think? Is that a sensible idea? Or rather impossible for some reason? Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/139 using your GitHub account
Received on Wednesday, 29 April 2020 14:21:50 UTC