ISBX / apprtc-ios

A native iOS video chat app based on WebRTC
BSD 3-Clause "New" or "Revised" License
1.35k stars 413 forks source link

While video call i m getting mirror image ? #67

Open divinebaibhav opened 7 years ago

divinebaibhav commented 7 years ago

While video call i am getting mirror image for Back camera ?

thanks

sunnyDay1111 commented 7 years ago

hi,I met the same situation.i can't find out a method to set remove mirror Effect in the RTCVideoRenderer and RTCEAGLVideoView File; Wondering if this problem is solved now, if so,you can tell me?

divinebaibhav commented 7 years ago

hello, As i am not a very good coder. but I sort out this with a short term solution. what i did is: I rotate the view when i get to know that camera is back. :)

sunnyDay1111 commented 7 years ago

It's really a good ideal will try . but I think it would be better if it could be solved before rendering.Android is in the creation of the render object can be set remove mirror Effect.

Pin-Yi-Wu commented 7 years ago

remoteRenderScreen.setMirror(false); localRender.setMirror(false);

bhoomesh950 commented 6 years ago

For front camera
self.localView.transform=CGAffineTransformMakeScale(-1.0, 1.0); for Back camera self.localView.transform=CGAffineTransformMakeScale(1.0, 1.0);

allenlinli commented 6 years ago

Same problem here, I will try to find where should I have a "mirror" property, in RTCVideoRenderer, RTCEAGLVideoView. In which class you guys think it should have?

AshishYadav01 commented 4 years ago

Guys, how this issue can be resolved instead to transform the view?. Please help.