New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify device selection algorithm #18
Comments
As an example: getUserMedia({ deviceId: 'abcdef', width: 1920, height: 1080, frameRate: 60 }) A simpler algorithm would be to try doing the search on one constraint at a time, following always the same order. One way to implement this with the existing algorithm is to provide a weight to each constraint. |
Comment w3c/mediacapture-main#1 and comment w3c/mediacapture-main#2 address completely different issues. The WG long ago decided to not prescribe exactly which permissible device to return when more than one was permissible (since the example you give has no exact constraints, all devices will be permissible). The lack of an API for generating fake devices makes it very difficult to test this stuff in Web Platform Tests, but I think you're working on a solution for that, right? Re comment w3c/mediacapture-main#2, trying one constraint at a time: |
will be helpful. Where to track development of that feature? |
Current approach suggests to test all possible constraint combinations and use the combination that has the lowest fitness distance.
This is difficult to implement and provides sometimes interesting but maybe unexpected results.
It would be good to try providing a simpler algorithm which could hopefully be implemented consistently.
The text was updated successfully, but these errors were encountered: