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
getUserMedia mandatory constraint not respected #11915
Comments
Added this to the Later milestone. |
Added html-api label. |
Removed Area-HTML label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
This seems to be doing what I'd expect in Dartium and Chrome now. In Firefox it does show a stream even though it doesn't meet the constraints, but I suspect that's a Firefox issue. The API isn't supported on Safari. Added AssumedStale label. |
This issue was originally filed by jvande...@gmail.com
What steps will reproduce the problem?
In Chromium Version 29.0.1530.0 (204370) running the code bellow on a web came with a 640x426 resolution produces a video element with dimensions 1280 x 720. The video is stretched to fit within it.
window.navigator.getUserMedia(video:{'mandatory':
{ 'minWidth': 1000 }}
).then((stream) {
video.autoplay = true;
video.src = Url.createObjectUrl(stream);
});
What is the expected output? What do you see instead?
On my laptop I expected an exception to be raised indicating that computer has no device matching the constraints. On my phone running chrome beta I expect the environment facing camera to be selected as it does meet the constraint.
What version of the product are you using? On what operating system?
Dart SDK version 0.6.3.3_r24898
Chromium Version 29.0.1530.0 (204370)
Chrome Version 27.0.1453.116
The text was updated successfully, but these errors were encountered: