FileDocCategorySizeDatePackage
PacketSizeControl.javaAPI DocJMF 2.1.1e1071Mon May 12 12:20:36 BST 2003javax.media.control

PacketSizeControl

public interface PacketSizeControl implements javax.media.Control
This interface is a Control for specifying the parameters for packet size. This control is useful for specifying the MTU of RTP channel.
since
JMF 2.0

Fields Summary
Constructors Summary
Methods Summary
public intgetPacketSize()
Retrieve the maximum packet size used by this encoder.

return
Maximum packet size in bytes used by this encoder.

public intsetPacketSize(int numBytes)
Sets the desired maximum data size on the data that is output by this encoder. This parameter is to be used as a means to convey the preferred size of individual data units (packets) that are output by this encoder. Returns the actual packet size that was set.

param
numBytes The number of bytes the maximum packet size is set to
return
the actual packet size in bytes set by the encoder