New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 676989 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Constraints in WebRTC not working yet.

Project Member Reported by mtomasz@chromium.org, Dec 26 2016

Issue description

Google Chrome	55.0.2883.87 (Official Build) (64-bit)
Linux


1.

navigator.mediaDevices.getUserMedia({
  video: {width: 1920, height: 1080}
});

Returns 640x480 stream, but it should return 1920x1080 in this case (supported by hardware).


2.

navigator.mediaDevices.getUserMedia({
  video: {
    advanced: [
      {width: 1920, height: 1080},
      {width: 800, height: 600},
      {width: 640, height: 480}
    ]
  }
});

Returns 640x480 stream even though the camera supports full HD.


3.


navigator.mediaDevices.getUserMedia({
  video: {width: {ideal: 1920}, height: {ideal: 1080}}
});

Returns 640x480 stream, but it should return the closest to 1920x1080 supported by the hardware.
 
Owner: hta@chromium.org
Status: Assigned (was: Available)
@hta: Could you confirm and triage? Thanks.
Cc: mtomasz@chromium.org
Alternatively, is there any way to open a camera with the highest resolution possible without blindly probing each resolution?

Comment 4 by hta@chromium.org, Jan 3 2017

Did any of these ever work in Chrome?
If so, in which version?

We're trying to make them all work for 57 per spec, but I don't see how they can hae worked before as intended.

Summary: Constraints in WebRTC not working yet. (was: Constraints in WebRTC not working anymore.)
Hm, right. I was using the older constraints syntax with minWidth and minHeight. Sorry for the false alarm.
Labels: -ReleaseBlock-Beta -M-56 M-57

Comment 7 by hta@chromium.org, Jan 11 2017

Labels: -Pri-1 -M-57 M-58 Pri-2
Thanks for the update! Since we want the newer constraints to work, I'm leaving it open, but reclassifying as P2 and targeting M58. These are good ideas for tests.

@hta: Is there any progress with the new constraints?

Comment 9 by hta@chromium.org, Apr 5 2017

Owner: guidou@chromium.org
Status: Fixed (was: Assigned)
Closing, since the examples in the summary now all work. 
 Issue 543997  tracks the implementation of the whole API.

Sign in to add a comment