javax.media.rtp
Interface RTPStream

All Known Subinterfaces:
ReceiveStream, SendStream

public interface RTPStream

Interface RTPStream -- base interface representing a stream within an RTP session. Objects do not implement RTPStream, but rather ReceiveStream.


Method Summary
 DataSource getDataSource()
          Returns the datasource of the stream.
 Participant getParticipant()
          Returns the Participant that "owns" this stream.
 SenderReport getSenderReport()
          Retrieves the latest RTCP sender report for this stream.
 long getSSRC()
          Returns the SSRC of the stream.
 

Method Detail

getParticipant

public Participant getParticipant()
Returns the Participant that "owns" this stream. If this is an "orphaned" receive stream (see RTPSessionListener.newReceiveStream), null is returned; the recvStreamMapped() callback announces the fact that this call will no longer return null for this object.


getSenderReport

public SenderReport getSenderReport()
Retrieves the latest RTCP sender report for this stream. May be null if no RTCP sender report has been received (for ReceiveStreams)

For receive streams, the returned report represents the latest sender report received from the remote source. If the associated remote participant contains multiple ReceiveStreams, the reports returned by invoking this method on each may not necessarily contain an RTCPFeedback array (obtainable via getRTCPFeedbackReports()). This is for the same reason as noted above; since the reports are coming from the same participant, they would only differ in the sender portion and it would be redundant to send the receiver portion in each.


getSSRC

public long getSSRC()
Returns the SSRC of the stream.

Returns:
the stream's SSRC.


getDataSource

public DataSource getDataSource()
Returns the datasource of the stream.


Submit a bug or feature
Copyright 1994-2004 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.