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:
,
Feb 26 2018
Galaxy Tab 4 running Android 5.02. 'camera 1, facing front' works. 'camera 0, facing back' fail.
,
Feb 27 2018
,
Feb 27 2018
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!
,
Feb 27 2018
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.
,
Feb 27 2018
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
,
Feb 28 2018
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!
,
Feb 28 2018
,
Feb 28 2018
,
Mar 9 2018
,
May 25 2018
,
May 31 2018
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?
,
Jun 8 2018
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 |
|||||||||
Comment 1 Deleted