javax.media.rtp.rtcp
Interface SenderReport


public interface SenderReport
extends Report

Contains the methods specific to an RTCP sender report (SR).


Method Summary
 long getNTPTimeStampLSW()
          Returns the least significant word of the NTP timestamp.
 long getNTPTimeStampMSW()
          Returns the most significant word of the NTP timestamp.
 long getRTPTimeStamp()
          Returns the RTP Timestamp.
 long getSenderByteCount()
          Returns the sender's byte count.
 Feedback getSenderFeedback()
          Returns a Feedback object corresponding to the feedback for this sender which the *local* participant is sending out in RTCP reports.
 long getSenderPacketCount()
          Returns the sender's packet count.
 RTPStream getStream()
          Returns the RTPStream associated with this sender report.This method may return NULL if this SR was received before RTP data packets have arrived and an ReceiveStream could be created.
 
Methods inherited from interface javax.media.rtp.rtcp.Report
getFeedbackReports, getParticipant, getSourceDescription, getSSRC
 

Method Detail

getStream

public RTPStream getStream()
Returns the RTPStream associated with this sender report.This method may return NULL if this SR was received before RTP data packets have arrived and an ReceiveStream could be created.

Note that RTCPReceiverReports don't expose this method. This is because RR's come from passive listeners that are represented by an Participant with no ReceiveStreams.


getSenderPacketCount

public long getSenderPacketCount()
Returns the sender's packet count.


getSenderByteCount

public long getSenderByteCount()
Returns the sender's byte count.


getNTPTimeStampMSW

public long getNTPTimeStampMSW()
Returns the most significant word of the NTP timestamp. This is returned as a long because it's a 32-bit *unsigned* quantity, the full range of which is only representable by a long.


getNTPTimeStampLSW

public long getNTPTimeStampLSW()
Returns the least significant word of the NTP timestamp. This is returned as a long because it's a 32-bit *unsigned* quantity, the full range of which is only representable by a long

getRTPTimeStamp

public long getRTPTimeStamp()
Returns the RTP Timestamp. This is returned as a long because it's a 32-bit *unsigned* quantity, the full range of which is only representable by a long.


getSenderFeedback

public Feedback getSenderFeedback()
Returns a Feedback object corresponding to the feedback for this sender which the *local* participant is sending out in RTCP reports. This allows an application to quickly obtain the reception statistics we are generating for this source. Note that this method does not directly relate to the bits received in RTCP sender reports. This Feedback object is also available via the local participant (but not as easily) because it is part of the RTCP reports it is sending out. By calling getReports() on the local participant we could retrieve an RTCPReport containing this same Feedback.



Submit a bug or feature
Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.