public class SenderReport
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MTU |
Constructor and Description |
---|
SenderReport() |
SenderReport(int ssrc) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getLocalPort() |
int |
getPort() |
int |
getSSRC() |
void |
reset()
Resets the reports (total number of bytes sent, number of packets sent, etc.)
|
void |
setDestination(java.net.InetAddress dest,
int dport) |
void |
setInterval(long interval)
Sets the temporal interval between two RTCP Sender Reports.
|
void |
setOutputStream(java.io.OutputStream os,
byte channelIdentifier)
If a TCP is used as the transport protocol for the RTP session,
the output stream to which RTP packets will be written to must
be specified with this method.
|
void |
setSSRC(int ssrc) |
void |
update(int length,
long rtpts)
Updates the number of packets sent, and the total amount of data sent.
|
public static final int MTU
public SenderReport(int ssrc) throws java.io.IOException
java.io.IOException
public SenderReport()
public void close()
public void setInterval(long interval)
interval
- The interval in millisecondspublic void update(int length, long rtpts) throws java.io.IOException
length
- The length of the packetrtpts
- The RTP timestamp.java.io.IOException
public void setSSRC(int ssrc)
public void setDestination(java.net.InetAddress dest, int dport)
public void setOutputStream(java.io.OutputStream os, byte channelIdentifier)
public int getPort()
public int getLocalPort()
public int getSSRC()
public void reset()