net.sf.fmj.media.rtp
Class RTCPSenderReport

java.lang.Object
  extended by net.sf.fmj.media.rtp.RTCPReport
      extended by net.sf.fmj.media.rtp.RTCPSenderReport
All Implemented Interfaces:
Report, SenderReport

public class RTCPSenderReport
extends RTCPReport
implements SenderReport

Represents an RTCP Sender Report

Version:
1-1-alpha3
Author:
Andrew G D Rowley, Christian Vincenot

Field Summary
 
Fields inherited from class net.sf.fmj.media.rtp.RTCPReport
feedbackReports, header, participant, sdesBytes, sourceDescriptions
 
Constructor Summary
RTCPSenderReport(byte[] data, int offset, int length)
          Creates a new RTCPSenderReport
 
Method Summary
 long getNTPTimeStampLSW()
          Returns the sender's timestamp's least significant word.
 long getNTPTimeStampMSW()
          Returns the sender's timestamp's most significant word.
 long getRTPTimeStamp()
          Returns the RTP timestamp.
 long getSenderByteCount()
          Returns the number of bytes sent by this sender.
 Feedback getSenderFeedback()
          Returns the sender's feedbacks.
 long getSenderPacketCount()
          Returns the number of packets sent by this sender.
 RTPStream getStream()
          Returns the RTPStream associated with the sender.
protected  void setStream(RTPStream stream)
          Sets the RTPStream associated with the sender.
 
Methods inherited from class net.sf.fmj.media.rtp.RTCPReport
getByeReason, getCName, getFeedbackReports, getParticipant, getSourceDescription, getSSRC, isByePacket, readBye, readFeedbackReports, readSourceDescription, setParticipant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.media.rtp.rtcp.Report
getFeedbackReports, getParticipant, getSourceDescription, getSSRC
 

Constructor Detail

RTCPSenderReport

public RTCPSenderReport(byte[] data,
                        int offset,
                        int length)
                 throws java.io.IOException
Creates a new RTCPSenderReport

Parameters:
data - The data of the report
offset - The offset of the report in the data
length - The length of the data
Throws:
java.io.IOException - I/O Exception
Method Detail

setStream

protected void setStream(RTPStream stream)
Sets the RTPStream associated with the sender.

Parameters:
stream - the RTPStream associated with the sender

getStream

public RTPStream getStream()
Returns the RTPStream associated with the sender.

Specified by:
getStream in interface SenderReport
Returns:
the RTPStream associated with the sender

getSenderPacketCount

public long getSenderPacketCount()
Returns the number of packets sent by this sender.

Specified by:
getSenderPacketCount in interface SenderReport
Returns:
the number of packets sent by this sender

getSenderByteCount

public long getSenderByteCount()
Returns the number of bytes sent by this sender.

Specified by:
getSenderByteCount in interface SenderReport
Returns:
the number of bytes sent by this sender

getNTPTimeStampMSW

public long getNTPTimeStampMSW()
Returns the sender's timestamp's most significant word.

Specified by:
getNTPTimeStampMSW in interface SenderReport
Returns:
the sender's timestamp's most significant word

getNTPTimeStampLSW

public long getNTPTimeStampLSW()
Returns the sender's timestamp's least significant word.

Specified by:
getNTPTimeStampLSW in interface SenderReport
Returns:
the sender's timestamp's least significant word

getRTPTimeStamp

public long getRTPTimeStamp()
Returns the RTP timestamp.

Specified by:
getRTPTimeStamp in interface SenderReport
Returns:
the RTP timestamp

getSenderFeedback

public Feedback getSenderFeedback()
Returns the sender's feedbacks.

Specified by:
getSenderFeedback in interface SenderReport
Returns:
the sender's feedbacks