Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
WebRTC 视频在前置摄像头中水平翻转,因此在接收端也显示此翻转视频。但是后置摄像头作为相机应用程序可以正常工作。
如何改变前置摄像头的这种翻转行为,从而改变在远端接收的捕获帧?
请尝试代码。这意味着翻转水平。它适用于我。
self.localView.transform = CGAffineTransformMakeScale(-1.0, 1.0);