javax.media.rtp
Interface SendStream


public interface SendStream
extends RTPStream

Interface SendStream -- interface representing a sending stream within an RTP session.


Method Summary
 void close()
          Removes the stream from the session.
 TransmissionStats getSourceTransmissionStats()
          Retrieve statistics on data and control packets transmitted on this RTPSendStream.
 int setBitRate(int bitRate)
           
 void setSourceDescription(SourceDescription[] sourceDesc)
          Changes the source description (SDES) reports being sent in RTCP packets for this sending stream.
 void start()
          Will resume data transmission over the network on this RTPSendStream.
 void stop()
          Will temporarily stop the RTPSendStream i.e.
 
Methods inherited from interface javax.media.rtp.RTPStream
getDataSource, getParticipant, getSenderReport, getSSRC
 

Method Detail

setSourceDescription

public void setSourceDescription(SourceDescription[] sourceDesc)
Changes the source description (SDES) reports being sent in RTCP packets for this sending stream.

Parameters:
sourceDesc - The new source description data.


close

public void close()
Removes the stream from the session. When this method is called the RTPSM deallocates all resources associated with this stream and releases references to this object as well as the Player which had been providing the send stream.


stop

public void stop()
          throws java.io.IOException
Will temporarily stop the RTPSendStream i.e. the local participant will stop sending out data on the network at this time.
Throws:
java.io.IOException - Thrown if there was any IO problems when stopping the RTPSendStream. A stop to the sendstream will also cause a stop() to be called on the stream's datasource. This could also throw an IOException, consistent with datasources in JMF.

start

public void start()
           throws java.io.IOException
Will resume data transmission over the network on this RTPSendStream.
Throws:
java.io.IOException - Thrown if there was any IO problems when starting the RTPSendStream. A start to the sendstream will also cause a start() to be called on the stream's datasource. This could also throw an IOException, consistent with datasources in JMF.

setBitRate

public int setBitRate(int bitRate)

getSourceTransmissionStats

public TransmissionStats getSourceTransmissionStats()
Retrieve statistics on data and control packets transmitted on this RTPSendStream. All the transmission statistics pertain to this particular RTPSendStream only. Global statistics on all data sent out from this participant (host) can be retrieved using getGlobalTransmission() method from the SessionManager.


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.