Index: webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java |
diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java |
index e2f130663bf77425414eb9fb5a3734fe991ebd92..a01f118520e93a0c234a9ca573deb7318d34a9bb 100644 |
--- a/webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java |
+++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java |
@@ -559,7 +559,7 @@ public class CallActivity extends Activity |
public void run() { |
if (peerConnectionClient == null) { |
Log.e(TAG, |
- "Received ICE candidate for non-initilized peer connection."); |
+ "Received ICE candidate for non-initialized peer connection."); |
return; |
} |
peerConnectionClient.addRemoteIceCandidate(candidate); |
@@ -568,6 +568,20 @@ public class CallActivity extends Activity |
} |
@Override |
+ public void onRemoteIceCandidatesRemoved(final IceCandidate[] candidates) { |
+ runOnUiThread(new Runnable() { |
+ @Override |
+ public void run() { |
+ if (peerConnectionClient == null) { |
+ Log.e(TAG, "Received ICE candidate removals for non-initialized peer connection."); |
+ return; |
+ } |
+ peerConnectionClient.removeRemoteIceCandidates(candidates); |
+ } |
+ }); |
+ } |
+ |
+ @Override |
public void onChannelClose() { |
runOnUiThread(new Runnable() { |
@Override |
@@ -618,6 +632,18 @@ public class CallActivity extends Activity |
} |
@Override |
+ public void onIceCandidatesRemoved(final IceCandidate[] candidates) { |
+ runOnUiThread(new Runnable() { |
+ @Override |
+ public void run() { |
+ if (appRtcClient != null) { |
+ appRtcClient.sendLocalIceCandidateRemovals(candidates); |
+ } |
+ } |
+ }); |
+ } |
+ |
+ @Override |
public void onIceConnected() { |
final long delta = System.currentTimeMillis() - callStartedTimeMs; |
runOnUiThread(new Runnable() { |