Class PacketTimeAttribute
This 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.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch.Sdp
Assembly: FM.LiveSwitch.dll
Syntax
public class PacketTimeAttribute : Attribute
Constructors
PacketTimeAttribute(Int32)
Initializes a new instance of the PacketTimeAttribute class.
Declaration
public PacketTimeAttribute(int packetTime)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | packetTime | The length of time in milliseconds represented by the media in a packet. |
Properties
PacketTime
Gets or sets the length of time in milliseconds represented by the media in a packet.
Declaration
public int PacketTime { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
FromAttributeValue(String)
Initializes a new instance of the PacketTimeAttribute class.
Declaration
public static PacketTimeAttribute FromAttributeValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The attribute value. |
Returns
Type | Description |
---|---|
PacketTimeAttribute |
GetAttributeValue()
Gets the internal value of the attribute.
Declaration
protected override string GetAttributeValue()
Returns
Type | Description |
---|---|
System.String |