/ fm / liveswitch / sdp / GroupAttribute
Class: GroupAttribute
liveswitch.sdp.GroupAttribute
Defined in RFC 3388. Attribute is used for grouping together different media streams. Its formatting in SDP is described by the following BNF: group-attribute = "a=group:" semantics (space identification-tag) semantics = "LS" | "FID" | "BUNDLE"
Hierarchy
-
↳ GroupAttribute
Table of contents
Constructors
Methods
- getAttributeType
- getAttributeValue
- getIds
- getMultiplexingCategory
- getSemantics
- getTypeString
- setAttributeType
- setMultiplexingCategory
- toString
- createAttribute
- fromAttributeValue
- getTypeName
- isMediaLevel
- isSessionLevel
- parse
Constructors
constructor
+ new GroupAttribute(type
: GroupSemanticsType, ids
: string[]): GroupAttribute
Initializes a new instance of the [[fm.liveswitch.sdp.groupAttribute]] class.
Parameters:
Name | Type | Description |
---|---|---|
type |
GroupSemanticsType | The semantics type. |
ids |
string[] | Group identification ID tags. |
Returns: GroupAttribute
Inherited from: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/GroupAttribute.ts:20
Methods
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/GroupAttribute.ts:84
getIds
▸ getIds(): string[]
Gets the group identification tags.
Returns: string[]
Defined in: Generated/TypeScript/fm.liveswitch/sdp/GroupAttribute.ts:113
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
getSemantics
▸ getSemantics(): GroupSemanticsType
Gets the semantics.
Returns: GroupSemanticsType
Defined in: Generated/TypeScript/fm.liveswitch/sdp/GroupAttribute.ts:125
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/GroupAttribute.ts:14
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): GroupAttribute
Initializes a new instance of the [[fm.liveswitch.sdp.groupAttribute]] class.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | The attribute value. |
Returns: GroupAttribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/GroupAttribute.ts:52
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