org.lastbamboo.common.ice
Class GeneralIceMediaStreamFactoryImpl

java.lang.Object
  extended by org.lastbamboo.common.ice.GeneralIceMediaStreamFactoryImpl
All Implemented Interfaces:
GeneralIceMediaStreamFactory

public class GeneralIceMediaStreamFactoryImpl
extends Object
implements GeneralIceMediaStreamFactory

Factory for creating media streams. This factory offers a more complex API intended for specialized ICE implementations of the simpler IceMediaStreamFactory interface to use behind the scenes.


Constructor Summary
GeneralIceMediaStreamFactoryImpl(org.littleshoot.util.CandidateProvider<InetSocketAddress> stunServerCandidateProvider)
          Creates a new ICE media stream factory with the specified candidate providers for connecting to TURN and STUN servers.
 
Method Summary
<T> IceMediaStream
newIceMediaStream(org.lastbamboo.common.offer.answer.IceMediaStreamDesc streamDesc, IceAgent iceAgent, org.lastbamboo.common.turn.client.TurnClientListener delegateTurnClientListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralIceMediaStreamFactoryImpl

public GeneralIceMediaStreamFactoryImpl(org.littleshoot.util.CandidateProvider<InetSocketAddress> stunServerCandidateProvider)
Creates a new ICE media stream factory with the specified candidate providers for connecting to TURN and STUN servers.

Parameters:
stunServerCandidateProvider - The STUN server address provider.
Method Detail

newIceMediaStream

public <T> IceMediaStream newIceMediaStream(org.lastbamboo.common.offer.answer.IceMediaStreamDesc streamDesc,
                                            IceAgent iceAgent,
                                            org.lastbamboo.common.turn.client.TurnClientListener delegateTurnClientListener)
                                 throws IceUdpConnectException
Specified by:
newIceMediaStream in interface GeneralIceMediaStreamFactory
Throws:
IceUdpConnectException


Copyright © 2013 LittleShoot. All Rights Reserved.