Giter Site home page Giter Site logo

Comments (8)

dbroadhurst avatar dbroadhurst commented on May 12, 2024

I've also tried on the NVidia Shield with the same result.

from cordova-plugin-camera-preview.

mbppower avatar mbppower commented on May 12, 2024

I think this is something related with some camera models. I am planning to implement a setFocus/setExposure/setFlash etc, so this kind of configuration could be done by Javascript.

from cordova-plugin-camera-preview.

Ekta09 avatar Ekta09 commented on May 12, 2024

What do you mean by square app selector ?
If you are talking about CameraPreviewBox then in my case I am opening cameraPreviewBox behind the HTML. So a .png image image with some texture and transparent background is over the preview box.
Thus tapEnabled or touch the previewBox isn't possible !
Can you suggest ?

from cordova-plugin-camera-preview.

mbppower avatar mbppower commented on May 12, 2024

When you enable toBack, you can't tap the camera box, because it's behind the webview, to solve this you can add an onclick event to a div with the same position and dimensions as the preview box. Then you call takePicture function.

from cordova-plugin-camera-preview.

dbroadhurst avatar dbroadhurst commented on May 12, 2024

The square app selector I was referring to is the system button you use to switch apps.

from cordova-plugin-camera-preview.

ramoncarreras avatar ramoncarreras commented on May 12, 2024

@dbroadhurst , same problem here. Any solution? I'm on android 6.0.1.

from cordova-plugin-camera-preview.

Xwalk-Company avatar Xwalk-Company commented on May 12, 2024

In Java for android, create an action

mCamera.cancelAutoFocus(); mCamera.autoFocus

or set the focus mode during init

List<String> focusModes = params.getSupportedFocusModes(); if (focusModes.contains(Camera.Parameters.FOCUS_MODE_AUTO)) { // Autofocus mode is supported params.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO); mCamera.setParameters(params); }

from cordova-plugin-camera-preview.

erperejildo avatar erperejildo commented on May 12, 2024

Fixed in previous merge

from cordova-plugin-camera-preview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.