Adds basic support for freeing candidates, components and streams.

This commit is contained in:
emcho 2010-03-05 13:06:16 +00:00
parent c00e6de61f
commit 20b3c287ac

View File

@ -68,7 +68,7 @@ public class Ice
transferRemoteCandidates(localStream, remoteStream); transferRemoteCandidates(localStream, remoteStream);
else else
{ {
//localStream.free(); localAgent.removeStream(localStream);
} }
} }
} }
@ -96,7 +96,7 @@ public class Ice
transferRemoteCandidates(localComponent, remoteComponent); transferRemoteCandidates(localComponent, remoteComponent);
else else
{ {
//localComponent.free(); localStream.removeComponent(localComponent);
} }
} }
} }
@ -104,6 +104,7 @@ public class Ice
/** /**
* Adds to <tt>localComponent</tt> a list of remote candidates that are * Adds to <tt>localComponent</tt> a list of remote candidates that are
* actually the local candidates from <tt>remoteComponent</tt>. * actually the local candidates from <tt>remoteComponent</tt>.
*
* @param localComponent the <tt>Component</tt> where that we should be * @param localComponent the <tt>Component</tt> where that we should be
* adding <tt>remoteCandidate</tt>s to. * adding <tt>remoteCandidate</tt>s to.
* @param remoteComponent the source of remote candidates. * @param remoteComponent the source of remote candidates.
@ -118,7 +119,9 @@ public class Ice
localComponent.addRemoteCandidate(new RemoteCandidate( localComponent.addRemoteCandidate(new RemoteCandidate(
rCand.getTransportAddress(), rCand.getTransportAddress(),
localComponent, localComponent,
rCand.getType())); rCand.getType(),
rCand.getFoundation(),
rCand.getPriority()));
} }
} }