Skip to content

'cameraDirection: Camera.Direction.FRONT' camera options not working in android #795

@vaibsVB

Description

@vaibsVB

Greetings to all.
I need a little help.

https://github.com/apache/cordova-plugin-camera#cameradirection--enum this GitHub cordova-plugin-camera docs say in order to open FRONT camera use integer '1'.

And what ionic-native camera v2 docs https://ionicframework.com/docs/v2/native/camera/#CameraOptions
says is for FRONT camera use integer '0' (camera.d.ts file says the same).

I'm confused, I tried both options cameraDirection: 0 and cameraDirection: 1.
And while running on android MOTO G4 device it opens back camera.

I also tried this one... cameraDirection: Camera.Direction.FRONT. But it opens back camera always.

Can anyone help me out of this?

Thanks in advance.

Check this forum topic too for reference https://forum.ionicframework.com/t/camera-options-not-work/70193/4

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