org.lastbamboo.common.ice
Class IceMediaStreamFactoryImpl

java.lang.Object
  extended by org.lastbamboo.common.ice.IceMediaStreamFactoryImpl
All Implemented Interfaces:
IceMediaStreamFactory

public class IceMediaStreamFactoryImpl
extends Object
implements IceMediaStreamFactory

ICE media stream factory class for creating streams where the ultimate media exchanged can happen over RUDP or TCP. This is packaged this way because the ICE code does not know about RUDP.


Constructor Summary
IceMediaStreamFactoryImpl(org.littleshoot.util.CandidateProvider<InetSocketAddress> stunServerCandidateProvider)
          Creates a new ICE media stream factory.
 
Method Summary
 IceMediaStream newStream(IceAgent iceAgent, org.lastbamboo.common.offer.answer.IceMediaStreamDesc streamDesc)
          Creates a new ICE media stream class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IceMediaStreamFactoryImpl

public IceMediaStreamFactoryImpl(org.littleshoot.util.CandidateProvider<InetSocketAddress> stunServerCandidateProvider)
Creates a new ICE media stream factory.

Parameters:
streamDesc - The description of the media stream to create.
rudpService - The service for RUDP connections.
Method Detail

newStream

public IceMediaStream newStream(IceAgent iceAgent,
                                org.lastbamboo.common.offer.answer.IceMediaStreamDesc streamDesc)
                         throws IceUdpConnectException
Description copied from interface: IceMediaStreamFactory
Creates a new ICE media stream class.

Specified by:
newStream in interface IceMediaStreamFactory
Parameters:
iceAgent - The ICE agent.
Returns:
The new ICE media stream.
Throws:
IceUdpConnectException - If there's an error connecting the ICE UDP peer.


Copyright © 2013 LittleShoot. All Rights Reserved.