net.sf.fmj.media.rtp
Class RTCPSenderInfo

java.lang.Object
  extended by net.sf.fmj.media.rtp.RTCPSenderInfo

public class RTCPSenderInfo
extends java.lang.Object

Represents the sender info part of the RTCP SR Packet

Version:
1-1-alpha
Author:
Andrew G D Rowley

Field Summary
static int SIZE
          The size of the sender info
 
Constructor Summary
RTCPSenderInfo(byte[] rtcpPacket, int offset, int length)
          Parses an RTCP SR packet
 
Method Summary
 long getNtpTimestampLSW()
          Returns the timestamp least significant word
 long getNtpTimestampMSW()
          Returns the timestamp most significant word
 double getNtpTimestampSecs()
          Returns the timestamp value in seconds
 long getOctetCount()
          Returns the octet count
 long getPacketCount()
          Returns the packet count
 long getRtpTimestamp()
          Returns the rtp timestamp
 long getTimestamp()
          Returns the timestamp of the information
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SIZE

public static final int SIZE
The size of the sender info

See Also:
Constant Field Values
Constructor Detail

RTCPSenderInfo

public RTCPSenderInfo(byte[] rtcpPacket,
                      int offset,
                      int length)
               throws java.io.IOException
Parses an RTCP SR packet

Parameters:
rtcpPacket - The data of the RTCP packet
Throws:
java.io.IOException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getTimestamp

public long getTimestamp()
Returns the timestamp of the information


getNtpTimestampSecs

public double getNtpTimestampSecs()
Returns the timestamp value in seconds


getNtpTimestampMSW

public long getNtpTimestampMSW()
Returns the timestamp most significant word


getNtpTimestampLSW

public long getNtpTimestampLSW()
Returns the timestamp least significant word


getRtpTimestamp

public long getRtpTimestamp()
Returns the rtp timestamp


getOctetCount

public long getOctetCount()
Returns the octet count


getPacketCount

public long getPacketCount()
Returns the packet count