Closed jjksam closed 6 years ago
It's no need to rotate the image, it will be slower, we just need to set the [AVCaptureConnection setVideoOrientation:AVCaptureVideoOrientationLandscapeRight] or
//屏幕方向
if (self.videoConfig.orientation == UIInterfaceOrientationLandscapeRight) {
_videoCamera.outputImageOrientation = UIInterfaceOrientationLandscapeRight;
} else {
_videoCamera.outputImageOrientation = UIInterfaceOrientationPortrait;
}
已解决
With landscape rotation on screen, the pushed stream shows distortion as attached. I've change the init to this. _captureManager.videoConfig.orientation = UIInterfaceOrientationLandscapeRight;
Attached image is a black pencil on white desk.