W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > January 2019

Re: [mediacapture-main] What constraint name should be exposed in case of a getUserMedia query with multiple failing constraints (#562)

From: youennf via GitHub <sysbot+gh@w3.org>
Date: Mon, 28 Jan 2019 17:04:56 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-458215504-1548695095-sysbot+gh@w3.org>
I would be curious to know which websites are gathering such getUserMedia constraint failure stats.

I did look at some popular video conferencing web sites and how they use getUserMedia.

For a first-time user, I haven't seen use of any mandatory constraint, except to ask for both audio and video. Ideal constraints are sometimes used to set things like video resolution.

For a second-time user before getUserMedia grant, some websites do use mandatory constraints.
Mostly for deviceId. Constraining video resolution parameters do happen as well (sometimes optional, sometimes mandatory).

For these websites, I doubt that filtering constraintName pre-grant will heart much.
They might adapt easily, should it become a problem by calling:
- getUserMedia with deviceId as mandatory constraint and other constraints as ideal
- applyConstraints if video/audio parameters are not as expected

-- 
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/562#issuecomment-458215504 using your GitHub account
Received on Monday, 28 January 2019 17:04:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 15:32:54 UTC