public class PacketTimeAttribute extends AttributeField
This attribute gives the length of time in milliseconds represented by the
media in a packet.
This is probably only meaningful for audio data, but may be used with other
media types if it makes sense. It should not be necessary to know ptime to
decode RTP or vat audio, and it is intended as a recommendation for the
encoding/packetisation of audio. 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 |
|---|
PacketTimeAttribute() |
PacketTimeAttribute(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 PacketTimeAttribute()
public PacketTimeAttribute(int time)
public void setTime(int time)
public int getTime()
public String toString()
toString in class AttributeFieldCopyright © 2017 TeleStax, Inc.. All Rights Reserved.