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

Issue 859001 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Jan 15
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

VideoCaptureCamera.getDeviceSupportedFormats() cause camera to be lifted (on new phones with pop-up camera)

Project Member Reported by maximal@google.com, Jun 29 2018

Issue description

Steps to reproduce the problem:
1. Call Chromium's VideoCaptureCamera.getDeviceSupportedFormats() to get camera parameters/characteristics

What is the expected behavior?
Received camera parameters without camera opened because developers are not request to take photos/videos/preview

What went wrong?
When the camera is opened on a phone with pop-up camera, the camera is lifted and it raises users' concern. For example, the new Vivo Nex

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 67.0.3396.99  Channel: stable
OS Version: OS X 10.13.4
Flash Version: 

VideoCaptureCamera.getDeviceSupportedFormats()  now use Android's camera1 API, which requires a camera instance to retrieve camera's properties. By switching to camera2 API it should resolve the problem.
 
Labels: Needs-triage-Mobile
Cc: chelamcherla@chromium.org
Labels: Triaged-Mobile Needs-Feedback
maximal@: Could you please provide sample url/test file to test this issue from TE end. Also please provide device details and chrome version to test this issue from TE end.

Thanks!
Components: -Blink>Media Internals>Media>Capture
maximal@: Chromium already has a code path using the camera2 API. The camera1 API is used if one of the following two conditions is true:
1. Android version is below L
2. cameraCharacteristics.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL)
                == CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY

Since I assume pop-up cameras are a pretty new features, I am surprised that any of the above would be true for such a device. Could you check which of the above condition it is that leads to the camera1 API getting used?
@maximal: Could you please check above comment and let us know the behavior.

Thanks!
YEs for those devices having pop-up cameras, developers can handle that with camera2 API and some of the developers have already implemented/fixed the issue. Thank you very much.
Project Member

Comment 7 by sheriffbot@chromium.org, Oct 16

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
Owner: maximal@google.com
Status: WontFix (was: Unconfirmed)
maximal@ it sounds like this issue is resolved in that the camera2 API should be used and doesn't cause the camera to be lifted. So closing as WontFix. If that's incorrect, feel free to reopen. Thanks.

Sign in to add a comment