public void DidSetSessionDescriptionWithError(RTCPeerConnection peerConnection, NSError error) { // dispatch_async(dispatch_get_main_queue(), if (error != null) { System.Diagnostics.Debug.WriteLine($"Failed to set session description. Error: {error}"); Disconnect(); // NSDictionary *userInfo = @{ // NSLocalizedDescriptionKey: @"Failed to create session description.", // }; // NSError *sdpError = // [[NSError alloc] initWithDomain:kARDAppClientErrorDomain // code:kARDAppClientErrorCreateSDP // userInfo:userInfo]; _delegate.DidError(this, error); return; } if (!_isInitiator && _peerConnection.LocalDescription == null) { RTCMediaConstraints constraints = DefaultAnswerConstraints(); _peerConnection.CreateAnswerWithDelegate(this, constraints); } }