/ fm / liveswitch / sdp / MediaStreamIdAttribute
Class: MediaStreamIdAttribute
liveswitch.sdp.MediaStreamIdAttribute
https://tools.ietf.org/html/rfc5888#page-4 "Media stream identification" media attribute, which is used for identifying media streams within a session description. Its formatting in SDP [RFC4566] is described by the following Augmented Backus-Naur Form(ABNF) [RFC5234]:
mid-attribute = "a=mid:" identification-tag identification-tag = token ; token is defined in RFC 4566 The identification-tag MUST be unique within an SDP session description.
Hierarchy
-
↳ MediaStreamIdAttribute
Table of contents
Constructors
Methods
- getAttributeType
- getAttributeValue
- getIdentificationTag
- getMultiplexingCategory
- getTypeString
- setAttributeType
- setMultiplexingCategory
- toString
- createAttribute
- fromAttributeValue
- getTypeName
- isMediaLevel
- isSessionLevel
- parse
Constructors
constructor
+ new MediaStreamIdAttribute(idValue: string): MediaStreamIdAttribute
Initializes a new instance of the [[fm.liveswitch.sdp.mediaStreamIdAttribute]] class.
Parameters:
| Name | Type | Description |
|---|---|---|
idValue |
string | The identifier. |
Returns: MediaStreamIdAttribute
Inherited from: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaStreamIdAttribute.ts:22
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
▸ ProtectedgetAttributeValue(): string
Gets the internal value of the attribute.
Returns: string
Overrides: Attribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaStreamIdAttribute.ts:63
getIdentificationTag
▸ getIdentificationTag(): string
Gets the identification tag.
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaStreamIdAttribute.ts:75
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/MediaStreamIdAttribute.ts:18
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
▸ ProtectedsetMultiplexingCategory(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
▸ StaticcreateAttribute(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
▸ StaticfromAttributeValue(value: string): MediaStreamIdAttribute
Initializes a new instance of the [[fm.liveswitch.sdp.mediaStreamIdAttribute]] class.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
string | The attribute value. |
Returns: MediaStreamIdAttribute
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaStreamIdAttribute.ts:51
getTypeName
▸ StaticgetTypeName(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
▸ StaticisMediaLevel(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
▸ StaticisSessionLevel(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
▸ Staticparse(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