[Video Capture Android] Support facing mode and list user-facing first
On Android, the facing mode of capture devices is currently reported only in form of a string appended to the device name. This was probably a legacy solution before facing mode has become an official field that can be queried. This CL fills the facing mode field so that it gets reported correctly. It then sorts device infos reported during device enumeration such that user-facing devices get listed first. This has the effect of making them preferred over back-facing cameras in case no facing-related constraints are given. Bug: 814298 Change-Id: I366475903693401c64ed7ff3f65d39536d6c13ba Reviewed-on: https://chromium-review.googlesource.com/1025213Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Reviewed-by:
Weiyong Yao <braveyao@chromium.org> Reviewed-by:
Guido Urdaneta <guidou@chromium.org> Commit-Queue: Christian Fremerey <chfremer@chromium.org> Cr-Commit-Position: refs/heads/master@{#553665}
Showing
Please register or sign in to comment