public class MaxPacketTimeAttribute extends AttributeField
This gives the maximum amount of media that can be encapsulated in each
packet, expressed as time in milliseconds.
The time SHALL be calculated as the sum of the time the media present in the
packet represents. For frame-based codecs, the time SHOULD be an integer
multiple of the frame size. This attribute is probably only meaningful for
audio data, but may be used with other media types if it makes sense. It is a
media-level attribute, and it is not dependent on charset.
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_TYPE |
ATTRIBUTE_SEPARATOR, BEGIN, BEGIN_LENGTH, builder, FIELD_TYPE, key, valueFIELD_SEPARATOR| Constructor and Description |
|---|
MaxPacketTimeAttribute() |
MaxPacketTimeAttribute(int time) |
| Modifier and Type | Method and Description |
|---|---|
int |
getTime() |
void |
setTime(int time) |
String |
toString() |
getFieldType, getKey, getValuepublic static final String ATTRIBUTE_TYPE
public MaxPacketTimeAttribute()
public MaxPacketTimeAttribute(int time)
public void setTime(int time)
public int getTime()
public String toString()
toString in class AttributeFieldCopyright © 2017 TeleStax, Inc.. All Rights Reserved.