diff options
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java | 2 | ||||
-rw-r--r-- | src/net/java/sip/communicator/service/netaddr/NetworkAddressManagerService.java | 26 |
2 files changed, 27 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java b/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java index 3632c41..f635325 100644 --- a/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java +++ b/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java @@ -190,7 +190,7 @@ public class IceUdpTransportManager = (RtpDescriptionPacketExtension)content .getFirstChildOfType(RtpDescriptionPacketExtension.class); - content.getName() + IceMediaStream stream = content.getName() } diff --git a/src/net/java/sip/communicator/service/netaddr/NetworkAddressManagerService.java b/src/net/java/sip/communicator/service/netaddr/NetworkAddressManagerService.java index 5c0c739..fb5b063 100644 --- a/src/net/java/sip/communicator/service/netaddr/NetworkAddressManagerService.java +++ b/src/net/java/sip/communicator/service/netaddr/NetworkAddressManagerService.java @@ -171,4 +171,30 @@ public interface NetworkAddressManagerService public StunCandidateHarvester discoverStunServer(String domainName, byte[] userName, byte[] password); + + /** + * Creates an <tt>IceMediaStrean</tt> and adds to it an RTP and and RTCP + * component, which also implies running the currently installed + * harvesters so that they would. + * + * @param rtpPort the port that we should try to bind the RTP component on + * (the RTCP one would automatically go to rtpPort + 1) + * @param streamName the name of the stream to create + * @param agent the <tt>Agent</tt> that should create the stream. + * + *@return the newly created <tt>IceMediaStream</tt>. + * + * @throws IllegalArgumentException if <tt>rtpPort</tt> is not a valid port + * number. + * @throws IOException if an error occurs while the underlying resolver + * is using sockets. + * @throws BindException if we couldn't find a free port between within the + * default number of retries. + */ + public IceMediaStream createStream( int rtpPort, + String streamName, + Agent agent) + throws IllegalArgumentException, + IOException, + BindException; } |