remirobert / CameraEngine

:monkey::camera: Camera engine for iOS, written in Swift, above AVFoundation. :monkey:
https://github.com/remirobert/CameraEngine
MIT License
583 stars 104 forks source link

UnMirror front-facing camera #48

Open otymartin opened 8 years ago

otymartin commented 8 years ago

@remirobert Video and Photos taken using the front-facing camera are mirrored from whats shown in the previewLayer. I know even the iOS camera behaves like this but I prefer the snapchat & instagram style. How can this be fixed?

UPDATE: In my preview playback, I unmirrored with

self.player.view.transform = CGAffineTransformMakeScale(-1.0, 1.0)

But this is just for playback, it doesnt record it un-mirrored.

AkibShahjahan commented 7 years ago

@otymartin were you able to figure this out?

otymartin commented 7 years ago

@AkibShahjahan only when playing back the video not when recording.


self.player.view.transform = CGAffineTransformMakeScale(-1.0, 1.0)