Hi all,
So i am working on an iOS app that is using webRTC, at the moment everything works fine for the front facing camera and even when they switch to the rear camera But when they then decide to change orientation on the rear camera then i am getting:
onVideoError: NSConcreteNotification 0x15d37c900 {name = AVCaptureSessionRuntimeErrorNotification;
object = <AVCaptureSession: 0x15d4e9c40 [AVCaptureSessionPreset640x480]>; userInfo = {
AVCaptureSessionErrorKey = "Error Domain=AVFoundationErrorDomain Code=-11800 \"The operation could not be completed\" UserInfo={NSUnderlyingError=0x15c0834a0 {Error Domain=NSOSStatusErrorDomain Code=-12780 \"(null)\"}, NSLocalizedFailureReason=An unknown error occurred (-12780), NSLocalizedDescription=The operation could not be completed}";
}}
Its very odd, because when i switch to the front facing camera and change the orientation then its fine. I even tried putting a delay in, but it still causes the problem and only on the rear camera.
Any thoughts? its rather annoying because most users switch the camera and then they immediately rotate the camera so i need to be able to handle this.
Thanks
Andrew.