-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting mirroringMode
#49
Comments
Meanwhile, if someone encounters the same issue, an alternate solution to obtain the video mirrored is to change the video configuration transform. sharedInstance.videoConfiguration.transform = CGAffineTransform(scaleX: -1, y: 1) |
hey @Slash7 thanks, much appreciated. i'll try fix this in my next free opportunity. |
👍🏻 |
this was the only thing that worked. setting mirroringMode has no effect. |
How do you actually produce an instagram or snapchat style front facing session without flipping the users face? |
@patthehuman I set And do this in my delegate
Works well. |
thank you. I have implemented that. I am getting this error:
Are you? |
@patthehuman You probably just wrote the delegate method wrong or have minor syntax error.. I would just copy these.
|
This is not working for me actually |
Can you show your code |
videoConfiguration.transform = CGAffineTransform(x: -1, y: 1) for me this produces videos with 180 degrees rotation (though they are opened normally in AVPlayer, QuickTime) |
Hi,
Setting the
mirroringMode
expects a session to already exist but crashes the app if the session has already started.If I set
sharedInstance.mirroringMode = .on
before callingnextLevel.start()
the mirroring mode is not taken into account.https://github.com/NextLevel/NextLevel/blob/master/Sources/NextLevel.swift#L1758
If I set
sharedInstance.mirroringMode = .on
in thenextLevelSessionDidStart
delegate the app crashes.The text was updated successfully, but these errors were encountered: