Use the right mirroring state when switching cameras in AppRTCDemo.
BUG= Review URL: https://codereview.webrtc.org/1799103002 Cr-Commit-Position: refs/heads/master@{#11988}
This commit is contained in:
@ -188,8 +188,6 @@
|
||||
if ([source isKindOfClass:[RTCAVFoundationVideoSource class]]) {
|
||||
RTCAVFoundationVideoSource* avSource = (RTCAVFoundationVideoSource*)source;
|
||||
avSource.useBackCamera = !avSource.useBackCamera;
|
||||
_videoCallView.localVideoView.transform = avSource.useBackCamera ?
|
||||
CGAffineTransformIdentity : CGAffineTransformMakeScale(-1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user