|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.impl.rtp.RtpFactory
public class RtpFactory
| Field Summary | |
|---|---|
protected java.net.InetSocketAddress |
publicAddress
|
protected BufferConcurrentLinkedQueue<RtpSocket> |
registerQueue
|
| Constructor Summary | |
|---|---|
RtpFactory()
Creates RTP Factory instance |
|
| Method Summary | |
|---|---|
AVProfile |
getAVProfile()
|
java.lang.String |
getBindAddress()
Gets the IP address to which trunk is bound. |
RtpClock |
getClock(org.mobicents.media.server.spi.MediaType media)
|
java.util.Hashtable<org.mobicents.media.server.spi.MediaType,java.util.List<org.mobicents.media.server.spi.dsp.CodecFactory>> |
getCodecs()
|
int |
getHighPort()
|
java.lang.Integer |
getJitter()
Gets the size of the jitter buffer in milliseconds. |
int |
getLowPort()
|
protected int |
getNextPort()
Get the next port to be used by the RtpSocket to bind Socket to passed port. |
int |
getPeriod()
|
RtpSocket |
getRTPSocket(org.mobicents.media.server.spi.MediaType media)
Constructs new RTP socket. |
protected java.nio.channels.Selector |
getSelector()
|
java.lang.String |
getStunAddress()
Gets the address of stun server if present. |
org.mobicents.media.server.spi.clock.Timer |
getTimer()
Gets media processing timer used by RTP socket. |
protected void |
register()
|
void |
setAVProfile(AVProfile avProfile)
|
void |
setBindAddress(java.lang.String bindAddress)
Modify the bind address. |
void |
setCodecs(java.util.Hashtable<org.mobicents.media.server.spi.MediaType,java.util.List<org.mobicents.media.server.spi.dsp.CodecFactory>> codecFactories)
|
void |
setHighPort(int highPort)
|
void |
setJitter(java.lang.Integer jitter)
Modify size of the jitter buffer. |
void |
setLowPort(int lowPort)
|
void |
setPeriod(int period)
|
void |
setStunAddress(java.lang.String address)
Assigns address of the STUN server. |
void |
setTimer(org.mobicents.media.server.spi.clock.Timer timer)
Assigns media processing timer. |
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.net.InetSocketAddress publicAddress
protected BufferConcurrentLinkedQueue<RtpSocket> registerQueue
| Constructor Detail |
|---|
public RtpFactory()
| Method Detail |
|---|
public java.lang.String getStunAddress()
public void setStunAddress(java.lang.String address)
address - the address of the stun server in format host[:port]. if port is not set then default port is used.
public void start()
throws java.net.SocketException,
java.io.IOException,
net.java.stun4j.StunException
java.net.SocketException
java.io.IOException
net.java.stun4j.StunExceptionprotected int getNextPort()
public void stop()
public int getPeriod()
public void setPeriod(int period)
public org.mobicents.media.server.spi.clock.Timer getTimer()
public void setTimer(org.mobicents.media.server.spi.clock.Timer timer)
timer - tmer object.public java.lang.String getBindAddress()
public void setBindAddress(java.lang.String bindAddress)
throws java.net.UnknownHostException
bindAddress - IP address as string or host name.
java.net.UnknownHostExceptionpublic int getLowPort()
public void setLowPort(int lowPort)
public int getHighPort()
public void setHighPort(int highPort)
public java.lang.Integer getJitter()
public void setJitter(java.lang.Integer jitter)
jitter - the new buffer's size in millisecondspublic AVProfile getAVProfile()
public void setAVProfile(AVProfile avProfile)
public RtpClock getClock(org.mobicents.media.server.spi.MediaType media)
public java.util.Hashtable<org.mobicents.media.server.spi.MediaType,java.util.List<org.mobicents.media.server.spi.dsp.CodecFactory>> getCodecs()
public void setCodecs(java.util.Hashtable<org.mobicents.media.server.spi.MediaType,java.util.List<org.mobicents.media.server.spi.dsp.CodecFactory>> codecFactories)
protected java.nio.channels.Selector getSelector()
protected void register()
public RtpSocket getRTPSocket(org.mobicents.media.server.spi.MediaType media)
throws java.io.IOException,
org.mobicents.media.server.spi.ResourceUnavailableException
net.java.stun4j.StunException
java.io.IOException
java.net.SocketException
net.java.stun4j.StunException
java.io.IOException
org.mobicents.media.server.spi.ResourceUnavailableException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||