|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.impl.rtp.RtpSocket
public class RtpSocket
| Field Summary | |
|---|---|
protected java.util.Collection<org.mobicents.media.server.spi.dsp.Codec> |
codecs
|
protected java.lang.String |
media
|
protected java.net.InetSocketAddress |
remoteAddress
|
protected org.mobicents.media.server.spi.Timer |
timer
|
| Constructor Summary | |
|---|---|
RtpSocket(RtpFactory rtpFactory,
Transceiver transceiver,
org.mobicents.media.server.spi.Timer timer,
java.util.Collection<org.mobicents.media.server.spi.dsp.Codec> codecs,
AVProfile avProfile,
java.lang.String media)
Creates a new instance of RtpSocket |
|
| Method Summary | |
|---|---|
AVProfile |
getAVProfile()
|
RtpClock |
getClock()
Gets current RTP clock instance. |
java.util.Collection<org.mobicents.media.server.spi.dsp.Codec> |
getCodecs()
|
org.mobicents.media.Format |
getFormat()
|
int |
getJitter()
Gets the jitter for time of packet arrival |
RtpSocketListener |
getListener()
|
java.lang.String |
getLocalAddress()
Gets address to which this socked is bound. |
int |
getLocalPort()
Returns port number to which this socked is bound. |
org.mobicents.media.MediaSource |
getReceiveStream()
Gets receiver stream. |
SendStream |
getSendStream()
(Non Java-doc). |
protected org.mobicents.media.server.spi.Timer |
getTimer()
|
protected void |
notify(java.lang.Exception e)
|
void |
receive(RtpPacket rtpPacket)
This method is called when rtp socket receives new rtp frame. |
void |
release()
Closes this socket and resets its streams; |
void |
send(byte[] packet)
|
void |
send(RtpPacket packet)
Sends media data to remote peer. |
void |
setClock(RtpClock clock)
Assign RTP clock implementation. |
void |
setDtmfPayload(int dtmf)
|
void |
setFormat(int payloadId,
org.mobicents.media.Format format)
Specifies format and payload id which will be used by this socket for transmission This methods should be used by other components which are responsible for SDP negotiation. |
void |
setJitter(int jitter)
Assign new value of packet time arrival jitter. |
void |
setListener(RtpSocketListener listener)
|
void |
setPeer(java.net.InetAddress address,
int port)
Assigns remote end. |
void |
setPeriod(int period)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String media
protected java.net.InetSocketAddress remoteAddress
protected org.mobicents.media.server.spi.Timer timer
protected java.util.Collection<org.mobicents.media.server.spi.dsp.Codec> codecs
| Constructor Detail |
|---|
public RtpSocket(RtpFactory rtpFactory,
Transceiver transceiver,
org.mobicents.media.server.spi.Timer timer,
java.util.Collection<org.mobicents.media.server.spi.dsp.Codec> codecs,
AVProfile avProfile,
java.lang.String media)
timer - used to synchronize receiver stream.rtpMap - RTP payloads list.| Method Detail |
|---|
protected org.mobicents.media.server.spi.Timer getTimer()
public org.mobicents.media.Format getFormat()
public void setPeriod(int period)
public java.util.Collection<org.mobicents.media.server.spi.dsp.Codec> getCodecs()
public void setFormat(int payloadId,
org.mobicents.media.Format format)
payloadId - rtp payload numberformat - the format object.public void setDtmfPayload(int dtmf)
public java.lang.String getLocalAddress()
public int getLocalPort()
public int getJitter()
public void setJitter(int jitter)
jitter - the value of jitter in milliseconds.public void setClock(RtpClock clock)
clock - the RTP clock instance;public RtpClock getClock()
public org.mobicents.media.MediaSource getReceiveStream()
public AVProfile getAVProfile()
public void release()
public RtpSocketListener getListener()
public void setListener(RtpSocketListener listener)
public void setPeer(java.net.InetAddress address,
int port)
throws java.io.IOException
address - the address of the remote party.port - the port number of the remote party.
java.io.IOExceptionpublic SendStream getSendStream()
org.mobicents.media.server.impl.rtp.RtpSocket#startSendStream(PushBufferDataSource);
public void send(RtpPacket packet)
throws java.io.IOException
RtpPacket - -
the packet which contains media data and rtp header
java.io.IOException
public void send(byte[] packet)
throws java.io.IOException
java.io.IOExceptionpublic void receive(RtpPacket rtpPacket)
rtpPacket - protected void notify(java.lang.Exception e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||