- From: Eero Häkkinen via GitHub <sysbot+gh@w3.org>
- Date: Tue, 01 Sep 2020 08:50:07 +0000
- To: public-webrtc-logs@w3.org
> > * Hotfix the fitness distance algorithm to give weight to presence of constraints. > > I do not see how this will guarantee to get what we want. The fitness distance algorithm could be hotfixed so that the distance is positive infinity if a PTZ constraint is present but the camera does not support that PTZ capability. In that case ```js navigator.mediaDevices.getUserMedia({video: {tilt: {}}}); ``` would select a tilt capable camera or fail with OverconstrainedError, ```js navigator.mediaDevices.getUserMedia({video: {deviceId: {exact: '20983-20o198-109283-098-09812'}, tilt: {}}}); ``` would select the device 20983-20o198-109283-098-09812 if it is tilt capable camera or fail with OverconstrainedError overwise and ```js navigator.mediaDevices.getUserMedia({video: {deviceId: {exact: '20983-20o198-109283-098-09812'}, advanced: [{tilt: {}}]}}); ``` would always select the device 20983-20o198-109283-098-09812 (given that it is available). -- GitHub Notification of comment by eehakkin Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/256#issuecomment-684598143 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 1 September 2020 08:50:09 UTC