New issue
Advanced search Search tips

Issue 816674 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

GUM with width and height constraints fail on back facing camera

Reported by ben.brow...@gmail.com, Feb 26 2018

Issue description

Steps to reproduce the problem:
1. Call navigator.mediaDevices.getUserMedia with width and height constraints and "camera 0, facing back" deviceId

function gotStream(mediaStream) {
video.srcObject = mediaStream;
}

//var deviceId = set to "camera 0, facing back" device
var constraints = {video: {deviceId: {exact: deviceID}, width: {ideal: 960}, height: {ideal: 540}}}
navigator.mediaDevices.getUserMedia(constraints)
  .then(gotStream)
  .catch(function(e) {
    errorMessage('getUserMedia', e.name);
})

What is the expected behavior?
Camera should display in the video element.

What went wrong?
Camera doesn't display in the video element.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 64.0.3282.137  Channel: stable
OS Version: 5.02
Flash Version:
 

Comment 1 Deleted

Galaxy Tab 4 running Android 5.02.
'camera 1, facing front' works.
'camera 0, facing back' fail.
Labels: Needs-triage-Mobile
Cc: pnangunoori@chromium.org
Labels: Triaged-Mobile Needs-Feedback
ben.browitt@ -- Thanks for reporting this issue. Could you please provide the sample file or application where this issue can be reproduced with screen cast for better understanding along with the device details. This would help us in reproducing and triaging the issue further.

Thanks in advance!
Sample app:
https://benbro.github.io/samples/src/content/devices/input-output/

Steps to reproduce:
1. Load the page in Chrome on Galaxy Tab 4 (Android):
2. You should see yourself in the video element but it's black.
3. Change the video source to "camera 0, facing back".
4. You should see yourself in the video element but it's still black.
5. Change the video source back to "camera 1, facing front".
6. Now you can see yourself in the video element.
Project Member

Comment 6 by sheriffbot@chromium.org, Feb 27 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: FoundIn-66 Target-66 M-66 FoundIn-64 FoundIn-65
Status: Untriaged (was: Unconfirmed)
Tested the issue in Android and able to reproduce the issue. Similar behavior is observed since Chrome #60.0.3072.0

Steps Followed:
1. Launched the Chrome Browser.
2. Navigate to the URL: https://benbro.github.io/samples/src/content/devices/input-output/
3. Give access to Camera and Microphone
4. Switch between the camera’s.
5. Observed that “camera 0, facing back” always gave a blank screen.

Chrome versions tested:
60.0.3072.0, 64.0.3282.137(Stable), 66.0.3355.0(Canary)

OS:
Android 5.0.2

Android Devices:
Samsung Galaxy Tab 4 (SM-T530NU) Build/LRX22G

This seems to be a Non-Regression issue as same behavior is seen since M60.  Untriaged for further input's on this issue.

Please navigate to below link for log's and video--
go/chrome-androidlogs/816674

Note: 
1. This issue is not observed in Desktop.
2. Issue is not observed on FireFox mobile version.
3. Issue doesn't seems to be appeared on Pixel Android 8.0.1.

Thanks!

Comment 8 by guidou@chromium.org, Feb 28 2018

Components: -Blink>GetUserMedia Blink>GetUserMedia>Webcam

Comment 9 by guidou@chromium.org, Feb 28 2018

Cc: chfremer@chromium.org
Owner: chfremer@chromium.org
Status: Assigned (was: Untriaged)
Labels: -M-66 M-69
Is this reproducible on any devices other than from the Galaxy Tab series? We unfortunately do not have any Galaxy Tab devices in our lab.

Maybe this can reproduce on some other Samsung devices?
You should be able to reproduce the issue on Samsung phone as well.
The github repo above doesn't have the test.
You should create a separate test.

Sign in to add a comment