Class MaxPacketTimeAttribute
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. Note that this attribute was introduced after RFC 2327, and non-updated implementations will ignore this attribute.
Inherited Members
Namespace: FM.LiveSwitch.Sdp
Assembly: FM.LiveSwitch.dll
Syntax
public class MaxPacketTimeAttribute : Attribute
Constructors
MaxPacketTimeAttribute(Int32)
Initializes a new instance of the MaxPacketTimeAttribute class.
Declaration
public MaxPacketTimeAttribute(int maxPacketTime)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxPacketTime | The maximum amount of media that can be encapsulated, in each packet, expressed as time in milliseconds. |
Properties
MaxPacketTime
Gets or sets the maximum amount of media that can be encapsulated, in each packet, expressed as time in milliseconds.
Declaration
public int MaxPacketTime { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
FromAttributeValue(String)
Initializes a new instance of the MaxPacketTimeAttribute class.
Declaration
public static MaxPacketTimeAttribute FromAttributeValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The attribute value. |
Returns
Type | Description |
---|---|
MaxPacketTimeAttribute |
GetAttributeValue()
Gets the internal value of the attribute.
Declaration
protected override string GetAttributeValue()
Returns
Type | Description |
---|---|
System.String |