Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS - WebRTC front camera - video is flipped horizontally

WebRTC video is flipped horizontally in Front Camera, thus in the receiving end also this flipped video is showing. But the Back Camera working fine as the Camera APP.

How to change this flipped behaviour of front camera and thus the captured frame which is receiving in the remote end?

like image 393
Dev Avatar asked Oct 20 '22 16:10

Dev


1 Answers

Please try the code.It means Flip Horizontal.It works for me.

self.localView.transform = CGAffineTransformMakeScale(-1.0, 1.0);
like image 112
Donny Avatar answered Oct 22 '22 21:10

Donny