Skip to content

UseFrontCameraIfAvailable does not work on Android. #2

Description

@ivoryguard

Hello.

I found that UseFrontCameraIfAvailable did not work on Android devices.

I inspected github repository sources and found that front camera was always bypassed by code like this;

// We don't use a front facing camera in this sample.
var facing = (Integer)characteristics.Get(CameraCharacteristics.LensFacing);
if (facing != null && facing == (Integer.ValueOf((int)LensFacing.Front)))
{
          continue;
 }

If you implement UseFrontCameraIfAvailable support on Android, it will be best.

In addition, if it is possible to select or set a target camera for previewing, it will be very helpful. Current Android implementation may use first non-front camera.

Best regards.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions