imaginary-cloud / CameraManager

Simple Swift class to provide all the configurations you need to create custom camera view in your app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Front camera flips photo

gbmksquare opened this issue · comments

Photos took by front camera is flipped after saving.

Though this is the default iOS behavior, since there are lots of people who prefer their selfie not bing flipped, it'll be great if there is a property to flip the front camera photo when saving to photo library.

Same for me .. did you solve this ?

@FaridHaddad Created a new pull request resolving this issue.

Front camera flips video

I found movieOutput.connections always empty when movieOutput created, so func _setupVideoConnection call only when movieOutput is nil and setting mirror is not working, I change like this to work

fileprivate func _getMovieOutput() -> AVCaptureMovieFileOutput {
    if movieOutput == nil {
        _createMovieOutput()
    } else {
        _setupVideoConnection() // <--- add this
    }
    return movieOutput!
}