VideoCaptureCamera.getDeviceSupportedFormats() cause camera to be lifted (on new phones with pop-up camera) |
|||||
Issue descriptionSteps 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.
,
Jul 24
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!
,
Aug 21
,
Sep 21
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?
,
Oct 15
@maximal: Could you please check above comment and let us know the behavior. Thanks!
,
Oct 16
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.
,
Oct 16
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
,
Jan 15
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 |
|||||
Comment 1 by pnangunoori@chromium.org
, Jul 24