/ fm / liveswitch / sdp / MaxPacketTimeAttribute
Class: MaxPacketTimeAttribute
liveswitch.sdp.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.
Hierarchy
-
↳ MaxPacketTimeAttribute
Table of contents
Constructors
Methods
- fmliveswitchsdpMaxPacketTimeAttributeInit
- getAttributeType
- getAttributeValue
- getMaxPacketTime
- getMultiplexingCategory
- getTypeString
- setAttributeType
- setMultiplexingCategory
- toString
- createAttribute
- fromAttributeValue
- getTypeName
- isMediaLevel
- isSessionLevel
- parse
Constructors
constructor
+ new MaxPacketTimeAttribute(): MaxPacketTimeAttribute
Returns: MaxPacketTimeAttribute
Inherited from: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MaxPacketTimeAttribute.ts:28
+ new MaxPacketTimeAttribute(maxPacketTime
: number): MaxPacketTimeAttribute
Initializes a new instance of the [[fm.liveswitch.sdp.maxPacketTimeAttribute]] class.
Parameters:
Name | Type | Description |
---|---|---|
maxPacketTime |
number | The maximum amount of media that can be encapsulated, in each packet, expressed as time in milliseconds. |
Returns: MaxPacketTimeAttribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MaxPacketTimeAttribute.ts:29
Methods
fmliveswitchsdpMaxPacketTimeAttributeInit
▸ Private
fmliveswitchsdpMaxPacketTimeAttributeInit(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MaxPacketTimeAttribute.ts:25
getAttributeType
▸ getAttributeType(): AttributeType
Gets this Attribute's Type.
Returns: AttributeType
Inherited from: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/Attribute.ts:582
getAttributeValue
▸ Protected
getAttributeValue(): string
Gets the internal value of the attribute.
Returns: string
Overrides: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MaxPacketTimeAttribute.ts:83
getMaxPacketTime
▸ getMaxPacketTime(): number
Gets the maximum amount of media that can be encapsulated, in each packet, expressed as time in milliseconds.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MaxPacketTimeAttribute.ts:96
getMultiplexingCategory
▸ getMultiplexingCategory(): AttributeCategory
Gets the Multiplexing Category of this Attribute.
Returns: AttributeCategory
Inherited from: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/Attribute.ts:600
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MaxPacketTimeAttribute.ts:19
setAttributeType
▸ setAttributeType(value
: AttributeType): void
Sets this Attribute's Type.
Parameters:
Name | Type |
---|---|
value |
AttributeType |
Returns: void
Inherited from: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/Attribute.ts:612
setMultiplexingCategory
▸ Protected
setMultiplexingCategory(value
: AttributeCategory): void
Sets the Multiplexing Category of this Attribute.
Parameters:
Name | Type |
---|---|
value |
AttributeCategory |
Returns: void
Inherited from: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/Attribute.ts:624
toString
▸ toString(): string
Converts this instance to a string.
Returns: string
Inherited from: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/Attribute.ts:636
createAttribute
▸ Static
createAttribute(name
: string, value
: string): Attribute
Creates an attribute.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name. |
value |
string | The value. |
Returns: Attribute
Inherited from: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/Attribute.ts:42
fromAttributeValue
▸ Static
fromAttributeValue(value
: string): MaxPacketTimeAttribute
Initializes a new instance of the [[fm.liveswitch.sdp.maxPacketTimeAttribute]] class.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | The attribute value. |
Returns: MaxPacketTimeAttribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MaxPacketTimeAttribute.ts:69
getTypeName
▸ Static
getTypeName(type
: Type): string
Gets the name of the attribute type.
Parameters:
Name | Type | Description |
---|---|---|
type |
Type | The attribute type. |
Returns: string
Inherited from: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/Attribute.ts:467
isMediaLevel
▸ Static
isMediaLevel(type
: Type): boolean
Determines whether the type applies to media streams.
Parameters:
Name | Type | Description |
---|---|---|
type |
Type | The type. |
Returns: boolean
Inherited from: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/Attribute.ts:492
isSessionLevel
▸ Static
isSessionLevel(type
: Type): boolean
Determines whether the type applies to sessions.
Parameters:
Name | Type | Description |
---|---|---|
type |
Type | The type. |
Returns: boolean
Inherited from: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/Attribute.ts:516
parse
▸ Static
parse(s
: string): Attribute
Creates an [[fm.liveswitch.sdp.connectionData]] instance from a string.
Parameters:
Name | Type | Description |
---|---|---|
s |
string | The string to parse. |
Returns: Attribute
Inherited from: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/Attribute.ts:540