|
||||||||||
| 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 org.mobicents.media.server.spi.rtp.RtpListener |
listener
RTP event listener |
protected java.net.InetSocketAddress |
publicAddress
|
protected BufferConcurrentLinkedQueue<RtpSocketImpl> |
registerQueue
Queue for socket registration |
| Constructor Summary | |
|---|---|
RtpFactory()
Creates RTP Factory instance |
|
| Method Summary | |
|---|---|
org.mobicents.media.server.spi.rtp.AVProfile |
getAVProfile()
Gets currently used Audio/Video profile. |
java.lang.String |
getBindAddress()
Gets the IP address to which trunk is bound. |
RtpClock |
getClock(org.mobicents.media.server.spi.MediaType media)
Gets RTP clocks for specified media type. |
java.util.Hashtable<org.mobicents.media.server.spi.MediaType,java.util.List<org.mobicents.media.server.spi.dsp.CodecFactory>> |
getCodecs()
Gets list of assigned codecs. |
int |
getHighPort()
Gets the maximum available port number. |
java.lang.Integer |
getJitter()
Gets the size of the jitter buffer in milliseconds. |
org.mobicents.media.server.spi.rtp.RtpListener |
getListener()
|
int |
getLowPort()
Gets the minimum available port number. |
protected int |
getNextPort()
Get the next port to be used by the RtpSocket to bind Socket to passed port. |
org.mobicents.media.server.spi.rtp.RtpSocket |
getRTPSocket(org.mobicents.media.server.spi.MediaType media)
Constructs new RTP socket for the specified media type. |
java.lang.String |
getStunAddress()
Gets the address of stun server if present. |
boolean |
isActive()
|
protected void |
notify(java.lang.Exception e)
|
protected void |
register()
Registers sockets in the receiver. |
void |
setAVProfile(org.mobicents.media.server.spi.rtp.AVProfile avProfile)
Modify audio/video profile. |
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)
Modify list of codecs. |
void |
setHighPort(int port)
Modifies maximum available port |
void |
setJitter(java.lang.Integer jitter)
Modify size of the jitter buffer. |
void |
setListener(org.mobicents.media.server.spi.rtp.RtpListener listener)
|
void |
setLowPort(int lowPort)
Modifies minimum available port |
void |
setStunAddress(java.lang.String address)
Assigns address of the STUN server. |
void |
start(long now)
|
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<RtpSocketImpl> registerQueue
protected org.mobicents.media.server.spi.rtp.RtpListener listener
| Constructor Detail |
|---|
public RtpFactory()
| Method Detail |
|---|
public void setListener(org.mobicents.media.server.spi.rtp.RtpListener listener)
setListener in interface org.mobicents.media.server.spi.rtp.RtpManagerpublic org.mobicents.media.server.spi.rtp.RtpListener getListener()
getListener in interface org.mobicents.media.server.spi.rtp.RtpManagerprotected void notify(java.lang.Exception e)
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(long now)
throws java.net.SocketException,
java.io.IOException
start in interface org.mobicents.media.server.spi.rtp.RtpManagerjava.net.SocketException
java.io.IOExceptionpublic boolean isActive()
protected int getNextPort()
public void stop()
stop in interface org.mobicents.media.server.spi.rtp.RtpManagerpublic java.lang.String getBindAddress()
getBindAddress in interface org.mobicents.media.server.spi.rtp.RtpManager
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)
lowPort - the port number.public int getHighPort()
public void setHighPort(int port)
port - the port number.public java.lang.Integer getJitter()
public void setJitter(java.lang.Integer jitter)
jitter - the new buffer's size in millisecondspublic org.mobicents.media.server.spi.rtp.AVProfile getAVProfile()
public void setAVProfile(org.mobicents.media.server.spi.rtp.AVProfile avProfile)
avProfile - the new value of the audio/video profile.public RtpClock getClock(org.mobicents.media.server.spi.MediaType media)
media - the media type
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)
codecFactories - the map between media type and list of codec's factories.protected void register()
public org.mobicents.media.server.spi.rtp.RtpSocket getRTPSocket(org.mobicents.media.server.spi.MediaType media)
throws java.io.IOException,
org.mobicents.media.server.spi.ResourceUnavailableException
getRTPSocket in interface org.mobicents.media.server.spi.rtp.RtpManagernet.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 | |||||||||