FileDocCategorySizeDatePackage
RTPConnector.javaAPI DocJMF 2.1.1e3912Mon May 12 12:20:40 BST 2003javax.media.rtp

RTPConnector

public interface RTPConnector
A programmer may abstract the underlying transport mechanism for RTP control and data from the RTPManager. This is done via the RTPConnector object. An implementation of the RTPConnector must be created and handed over to RTPManager during initialization. The RTPManager will then use it to handle the sending and receiving of the data and control packets. This replaces the deprecated RTPSocket interface.
see
RTPManager

Fields Summary
Constructors Summary
Methods Summary
public voidclose()
Close all the RTP, RTCP streams.

public javax.media.protocol.PushSourceStreamgetControlInputStream()
Returns an input stream to receive the RTCP data.

return
an input stream for reading data from the RTCP data channel.
exception
IOException if an I/O error occurs when creating the input stream.

public javax.media.rtp.OutputDataStreamgetControlOutputStream()
Returns an output stream to send the RTCP data.

return
an output stream for writing data to the RTCP data channel.
exception
IOException if an I/O error occurs when creating the output stream.

public javax.media.protocol.PushSourceStreamgetDataInputStream()
Returns an input stream to receive the RTP data.

return
an input stream for reading data from the RTP data channel.
exception
IOException if an I/O error occurs when creating the input stream.

public javax.media.rtp.OutputDataStreamgetDataOutputStream()
Returns an output stream to send the RTP data.

return
an output stream for writing data to the RTP data channel.
exception
IOException if an I/O error occurs when creating the output stream.

public doublegetRTCPBandwidthFraction()
Return the RTCP bandwidth fraction. This value is used to initialize the RTPManager. Check RTPManager for more detauls. Return -1 to use the default values.

see
RTPManager#initialize

public doublegetRTCPSenderBandwidthFraction()
Return the RTCP sender bandwidth fraction. This value is used to initialize the RTPManager. Check RTPManager for more detauls. Return -1 to use the default values.

see
RTPManager#initialize

public intgetReceiveBufferSize()
Get the receive buffer size set on the RTP data channel. Return -1 if the receive buffer size is not applicable for the implementation.

param
size of the receive buffers.

public intgetSendBufferSize()
Get the send buffer size set on the RTP data channel. Return -1 if the send buffer size is not applicable for the implementation.

param
size of the send buffers.

public voidsetReceiveBufferSize(int size)
Set the receive buffer size of the RTP data channel. This is only a hint to the implementation. The actual implementation may not be able to do anything to this.

param
size the size to which to set the receive buffer of the RTP data channel.

public voidsetSendBufferSize(int size)
Set the send buffer size of the RTP data channel. This is only a hint to the implementation. The actual implementation may not be able to do anything to this.

param
size the size to which to set the send buffer of the RTP data channel.