|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.fmj.media.rtp.RTPSocketAdapter
public class RTPSocketAdapter
An implementation of RTPConnector based on UDP sockets.
Constructor Summary | |
---|---|
RTPSocketAdapter(java.net.InetAddress laddr,
java.net.InetAddress addr,
int port,
int ttl)
Creates a new RTPSocketAdaptor |
|
RTPSocketAdapter(java.net.InetAddress addr,
int port)
Creates a new RTPSocketAdaptor with TTL 1 |
|
RTPSocketAdapter(java.net.InetAddress addr,
int port,
int ttl)
Creates a new RTPSocketAdaptor |
Method Summary | |
---|---|
void |
close()
Close all the RTP, RTCP streams. |
PushSourceStream |
getControlInputStream()
Returns an input stream to receive the RTCP data. |
OutputDataStream |
getControlOutputStream()
Returns an output stream to send the RTCP data. |
PushSourceStream |
getDataInputStream()
Returns an input stream to receive the RTP data. |
OutputDataStream |
getDataOutputStream()
Returns an output stream to send the RTP data. |
int |
getReceiveBufferSize()
Get the receive buffer size set on the RTP data channel. |
double |
getRTCPBandwidthFraction()
Return the RTCP bandwidth fraction. |
double |
getRTCPSenderBandwidthFraction()
Return the RTCP sender bandwidth fraction. |
int |
getSendBufferSize()
Get the send buffer size set on the RTP data channel. |
void |
setEncryption(RTPCrypt crypter)
Sets the encryption on the socket |
void |
setReceiveBufferSize(int size)
Set the receive buffer size of the RTP data channel. |
void |
setSendBufferSize(int size)
Set the send buffer size of the RTP data channel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RTPSocketAdapter(java.net.InetAddress addr, int port) throws java.io.IOException
addr
- The address of the socketport
- The port of the socket (data)
java.io.IOException
public RTPSocketAdapter(java.net.InetAddress addr, int port, int ttl) throws java.io.IOException
addr
- The address of the socketport
- The port of the socketttl
- The ttl for sending data
java.io.IOException
public RTPSocketAdapter(java.net.InetAddress laddr, java.net.InetAddress addr, int port, int ttl) throws java.io.IOException
laddr
- The local address to bind toaddr
- The address of the socketport
- The port of the socketttl
- The ttl for sending data
java.io.IOException
Method Detail |
---|
public void setEncryption(RTPCrypt crypter)
crypter
- The encrypter/decrypterpublic PushSourceStream getDataInputStream()
getDataInputStream
in interface RTPConnector
public OutputDataStream getDataOutputStream()
getDataOutputStream
in interface RTPConnector
public PushSourceStream getControlInputStream()
getControlInputStream
in interface RTPConnector
public OutputDataStream getControlOutputStream()
getControlOutputStream
in interface RTPConnector
public void close()
close
in interface RTPConnector
public void setReceiveBufferSize(int size) throws java.io.IOException
setReceiveBufferSize
in interface RTPConnector
java.io.IOException
public int getReceiveBufferSize()
getReceiveBufferSize
in interface RTPConnector
public void setSendBufferSize(int size) throws java.io.IOException
setSendBufferSize
in interface RTPConnector
java.io.IOException
public int getSendBufferSize()
getSendBufferSize
in interface RTPConnector
public double getRTCPBandwidthFraction()
getRTCPBandwidthFraction
in interface RTPConnector
public double getRTCPSenderBandwidthFraction()
getRTCPSenderBandwidthFraction
in interface RTPConnector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |