Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Rear camera is not working on devices with multiple cameras #71

Open
mtsmachado8 opened this issue Nov 19, 2020 · 1 comment
Open

Comments

@mtsmachado8
Copy link
Contributor

mtsmachado8 commented Nov 19, 2020

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://stencil-worldwide.slack.com

Current behavior:
The Rear camera is not working on devices with multiple cameras

Expected behavior:
It should work on S20+ and Huawey P30 Lite -> MAR-LX3A

Steps to reproduce:
Use pwa-elements and capacitor core on Galaxy S20+ them try to rotate the camera to the front one.
This will happen:
image

Related code:

import {
  Camera,
  CameraResultType,
  CameraSource,
  CameraDirection,
} from '@capacitor/core';

const image = await Camera.getPhoto({
        resultType: CameraResultType.DataUrl,
        source: CameraSource.Camera,
        direction: CameraDirection.Rear,
        quality: 100,
      });
      const imageDataUrl = image.dataUrl;
@mtsmachado8
Copy link
Contributor Author

#69 solves it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant