|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.fmj.media.rtp.RTPSocketAdapter
public class RTPSocketAdapter
An implementation of RTPConnector based on UDP sockets.
| Constructor Summary | |
|---|---|
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 |
addTarget(SessionAddress target)
Add a stream target. |
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. |
boolean |
removeTarget(SessionAddress target)
Removes a target from our session. |
void |
removeTargets()
Remove all stream targets. |
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 - I/O Exception
public RTPSocketAdapter(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 - I/O Exception| Method Detail |
|---|
public void setEncryption(RTPCrypt crypter)
crypter - The encrypter/decrypterpublic PushSourceStream getDataInputStream()
getDataInputStream in interface RTPConnectorpublic void addTarget(SessionAddress target)
target - Destination target addresspublic OutputDataStream getDataOutputStream()
getDataOutputStream in interface RTPConnectorpublic PushSourceStream getControlInputStream()
getControlInputStream in interface RTPConnectorpublic OutputDataStream getControlOutputStream()
getControlOutputStream in interface RTPConnectorpublic void close()
close in interface RTPConnectorpublic boolean removeTarget(SessionAddress target)
target - Destination target to be removed
public void removeTargets()
public void setReceiveBufferSize(int size)
throws java.io.IOException
setReceiveBufferSize in interface RTPConnectorsize - the wanted size of the buffer
java.io.IOException - I/O Exceptionpublic int getReceiveBufferSize()
getReceiveBufferSize in interface RTPConnector
public void setSendBufferSize(int size)
throws java.io.IOException
setSendBufferSize in interface RTPConnectorsize - the wanted size of the buffer
java.io.IOException - I/O Exceptionpublic int getSendBufferSize()
getSendBufferSize in interface RTPConnectorpublic double getRTCPBandwidthFraction()
getRTCPBandwidthFraction in interface RTPConnectorpublic double getRTCPSenderBandwidthFraction()
getRTCPSenderBandwidthFraction in interface RTPConnector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||