Implement JNI and objc implementation for icecandidateerror event
This CL adds the callback on ICE Candidate Error to the Android and the iOS SDKs. Spec: https://www.w3.org/TR/webrtc/#dom-rtcpeerconnection-onicecandidateerror Bug: webrtc:13446 Change-Id: I6e511aaa80f1aa8f4310d8518d1144d97470cd7e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/239460 Reviewed-by: Henrik Andreassson <henrika@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Henrik Andreassson <henrika@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35531}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
63b97de330
commit
d211098392
@ -13,6 +13,7 @@
|
||||
#import "sdk/objc/api/peerconnection/RTCAudioTrack.h"
|
||||
#import "sdk/objc/api/peerconnection/RTCConfiguration.h"
|
||||
#import "sdk/objc/api/peerconnection/RTCFileLogger.h"
|
||||
#import "sdk/objc/api/peerconnection/RTCIceCandidateErrorEvent.h"
|
||||
#import "sdk/objc/api/peerconnection/RTCIceServer.h"
|
||||
#import "sdk/objc/api/peerconnection/RTCMediaConstraints.h"
|
||||
#import "sdk/objc/api/peerconnection/RTCMediaStream.h"
|
||||
@ -425,6 +426,17 @@ static int const kKbpsMultiplier = 1000;
|
||||
});
|
||||
}
|
||||
|
||||
- (void)peerConnection:(RTC_OBJC_TYPE(RTCPeerConnection) *)peerConnection
|
||||
didFailToGatherIceCandidate:(RTC_OBJC_TYPE(RTCIceCandidateErrorEvent) *)event {
|
||||
RTCLog(@"Failed to gather ICE candidate. address: %@, port: %d, url: %@, errorCode: %d, "
|
||||
@"errorText: %@",
|
||||
event.address,
|
||||
event.port,
|
||||
event.url,
|
||||
event.errorCode,
|
||||
event.errorText);
|
||||
}
|
||||
|
||||
- (void)peerConnection:(RTC_OBJC_TYPE(RTCPeerConnection) *)peerConnection
|
||||
didRemoveIceCandidates:(NSArray<RTC_OBJC_TYPE(RTCIceCandidate) *> *)candidates {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
|
||||
Reference in New Issue
Block a user