Index: webrtc/api/java/src/org/webrtc/PeerConnection.java |
diff --git a/webrtc/api/java/src/org/webrtc/PeerConnection.java b/webrtc/api/java/src/org/webrtc/PeerConnection.java |
index 3c9fa0ee21f248a87fc4f3e0ac860be6e733e8fc..5f526196ee5a4ec6a2647bda0644e56c0a16c5b3 100644 |
--- a/webrtc/api/java/src/org/webrtc/PeerConnection.java |
+++ b/webrtc/api/java/src/org/webrtc/PeerConnection.java |
@@ -58,6 +58,9 @@ public class PeerConnection { |
/** Triggered when a new ICE candidate has been found. */ |
public void onIceCandidate(IceCandidate candidate); |
+ /** Triggered when some ICE candidates have been removed. */ |
+ public void onIceCandidatesRemoved(IceCandidate[] candidates); |
+ |
/** Triggered when media is received on a new stream from remote peer. */ |
public void onAddStream(MediaStream stream); |
@@ -193,6 +196,10 @@ public class PeerConnection { |
candidate.sdpMid, candidate.sdpMLineIndex, candidate.sdp); |
} |
+ public boolean removeIceCandidates(final IceCandidate[] candidates) { |
+ return nativeRemoveIceCandidates(candidates); |
+ } |
+ |
public boolean addStream(MediaStream stream) { |
boolean ret = nativeAddLocalStream(stream.nativeStream); |
if (!ret) { |
@@ -273,6 +280,8 @@ public class PeerConnection { |
private native boolean nativeAddIceCandidate( |
String sdpMid, int sdpMLineIndex, String iceCandidateSdp); |
+ private native boolean nativeRemoveIceCandidates(final IceCandidate[] candidates); |
+ |
private native boolean nativeAddLocalStream(long nativeStream); |
private native void nativeRemoveLocalStream(long nativeStream); |