|
||||||||||
| 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 java.util.HashMap<java.net.SocketAddress,RtpSocket> |
streamMap
|
| 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(java.lang.String media)
|
java.util.List<org.mobicents.media.server.spi.dsp.CodecFactory> |
getCodecFactories()
|
org.mobicents.media.Format[] |
getIntersection(org.mobicents.media.Format[] formats)
|
java.lang.Integer |
getJitter()
Gets the size of the jitter buffer in milliseconds. |
java.util.Hashtable<java.lang.String,java.lang.Integer> |
getLocalPorts()
|
int |
getPeriod()
|
RtpSocket |
getRTPSocket(java.lang.String media)
Constructs new RTP socket. |
java.lang.String |
getStunAddress()
Gets the address of stun server if present. |
org.mobicents.media.server.spi.Timer |
getTimer()
Gets media processing timer used by RTP socket. |
void |
releaseRTPSocket(RtpSocket rtpSocket)
|
void |
setAVProfile(AVProfile avProfile)
|
void |
setBindAddress(java.lang.String bindAddress)
Modify the bind address. |
void |
setCodecFactories(java.util.List<org.mobicents.media.server.spi.dsp.CodecFactory> codecFactories)
|
void |
setJitter(java.lang.Integer jitter)
Modify size of the jitter buffer. |
void |
setLocalPorts(java.util.Hashtable<java.lang.String,java.lang.Integer> localPorts)
|
void |
setPeriod(int period)
|
void |
setStunAddress(java.lang.String address)
Assigns address of the STUN server. |
void |
setTimer(org.mobicents.media.server.spi.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 volatile java.util.HashMap<java.net.SocketAddress,RtpSocket> streamMap
| Constructor Detail |
|---|
public RtpFactory()
| Method Detail |
|---|
public java.util.Hashtable<java.lang.String,java.lang.Integer> getLocalPorts()
public void setLocalPorts(java.util.Hashtable<java.lang.String,java.lang.Integer> localPorts)
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.StunExceptionpublic void stop()
public int getPeriod()
public void setPeriod(int period)
public org.mobicents.media.server.spi.Timer getTimer()
public void setTimer(org.mobicents.media.server.spi.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 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(java.lang.String media)
public java.util.List<org.mobicents.media.server.spi.dsp.CodecFactory> getCodecFactories()
public void setCodecFactories(java.util.List<org.mobicents.media.server.spi.dsp.CodecFactory> codecFactories)
public RtpSocket getRTPSocket(java.lang.String media)
net.java.stun4j.StunException
java.io.IOException
java.net.SocketException
net.java.stun4j.StunException
java.io.IOExceptionpublic void releaseRTPSocket(RtpSocket rtpSocket)
public org.mobicents.media.Format[] getIntersection(org.mobicents.media.Format[] formats)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||