Skip to content
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

Closed
DartBot opened this issue Jul 19, 2013 · 11 comments
Closed

getUserMedia mandatory constraint not respected #11915

DartBot opened this issue Jul 19, 2013 · 11 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-obsolete Closed as the reported issue is no longer relevant library-html

Comments

@DartBot
Copy link

DartBot commented Jul 19, 2013

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

@iposva-google
Copy link
Contributor

Added Area-HTML, Triaged labels.

@efortuna
Copy link
Contributor

Added this to the Later milestone.

@efortuna
Copy link
Contributor

efortuna commented Oct 3, 2013

Added html-api label.

@blois
Copy link
Contributor

blois commented Oct 3, 2013

Removed this from the Later milestone.
Added this to the M8 milestone.
Removed html-api label.

@efortuna
Copy link
Contributor

efortuna commented Oct 7, 2013

Postponing as getUserMedia is currently experimental.


Removed this from the M8 milestone.
Added this to the Later milestone.

@blois
Copy link
Contributor

blois commented Oct 7, 2013

This is a widely enough used API that we should see if this bug can be fixed without an API change.


Removed this from the Later milestone.
Added this to the M8 milestone.

@blois
Copy link
Contributor

blois commented Oct 7, 2013

Corrected- this is an issue with how it's being handled. Agree with efortuna.


Removed this from the M8 milestone.
Added this to the Later milestone.

@kevmoo
Copy link
Member

kevmoo commented Apr 7, 2014

Removed Area-HTML label.
Added Area-Library, Library-Html labels.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@alan-knight
Copy link
Contributor

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.

@DartBot DartBot added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-html closed-obsolete Closed as the reported issue is no longer relevant labels Jan 24, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-obsolete Closed as the reported issue is no longer relevant library-html
Projects
None yet
Development

No branches or pull requests

7 participants