Giter Club home page Giter Club logo

Comments (8)

Knights22 avatar Knights22 commented on September 26, 2024

1)If you press it fast 10 times in a row, it will go dark but it will still take an image but the image will be dark.
2) If you wait a split second it will stabilise and you can take a clear pic.

  1. I don't think this is an issue as i see no reason to hammer the camera button 10 time fast without giving the camera time to change viewpoints. If you press 10 times back and forth giving the camera time to switch viewpoints and this error occurs then that would be a valid bug.

from cool-ios-camera.

Tedeezy avatar Tedeezy commented on September 26, 2024

Thank you for your fast reply, for now, I already solved my problem by follow Apple's AVCam example:

  1. Disable switch button before [[self yourAVCaptureSession] beginConfiguration];
  2. Switch videoDeviceInput here
  3. Enable switch button after [[self yourAVCaptureSession] commitConfiguration];

Have a nice day :)

from cool-ios-camera.

Knights22 avatar Knights22 commented on September 26, 2024

Are you switching from front to back camera and back again? If you do this with apples IOS camera app, it will have a blur effect before the view stabilizes. There is no way for the camera to switch from front to back that quickly so many times. Therefore by disabling the switch button you just stopping someone from doing what you did.

from cool-ios-camera.

Tedeezy avatar Tedeezy commented on September 26, 2024

Yeah, I'm trying to tap it 10 times in a row, it will blinking for 4 seconds and sometimes I can see your Launch Camera button from behind.

Secondly, I want to improve this with double tap gesture on preview view to immediately switching between front and back camera, but it is a lot tricky than enable and disable switch button :).

from cool-ios-camera.

GabrielAlva avatar GabrielAlva commented on September 26, 2024

Many thanks mates for bringing this things to my attention, I will apply a more graceful transition to the camera switch that will give it some time to stabilise and not show the background view as well. Let me know if you can think on something better.

Any other proposals or pull requests you would like to submit are more than welcomed and I encourage you to submit them, @Tedeezy the double tap gesture sounds brilliant. I will apply more customisation options such as blurring in the top bar and bottom bar with adjusting on the blur. Also let me know anything you would like to see as well!

I am always open to add any other functionality and will read your comments immediately after you post them (given Im not asleep)!

from cool-ios-camera.

Tedeezy avatar Tedeezy commented on September 26, 2024

Thank you for your permission ^__^, I will do my best to help us better, have a nice day Gabriel 👍

from cool-ios-camera.

Tedeezy avatar Tedeezy commented on September 26, 2024

Try this one, Launch Camera, don't snap it yet, tap on switch camera button then snap it immediately, you will see your face and background gets dark because the camera is not ready to adjust the exposure.

I added the ImagePreviewView to my project to help user see his/her picture after snap, and they can dismiss the view with tap gesture :D.

Btw, I really love the animation of the top bar in portrait mode and landscape mode 👍 , I will learn to use paintcode soon. Thank you for using paintcode, It helps me a lot, ^^.

from cool-ios-camera.

GabrielAlva avatar GabrielAlva commented on September 26, 2024

@Tedeezy check it out now, I solved the camera toggle issue and the occasional brief appearance of the superview. Let me know how it goes! I will also add other features this week!

from cool-ios-camera.

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.