Using Front camera and changing orientation

483 views
Skip to first unread message

Andrew Reed

unread,
Sep 11, 2015, 1:02:33 PM9/11/15
to discuss-webrtc
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.

Andrew Reed

unread,
Sep 15, 2015, 3:38:49 AM9/15/15
to discuss-webrtc
Nevermind, in the end i am using openTok's library which seems to have resolved all the issues i was having.
Reply all
Reply to author
Forward
0 new messages