FMLiveSwitchSdpSctpMapAttribute Class Reference

AB: Legacy attribute. More...

Instance Methods

(NSString *) - getAttributeValue
 Gets the internal value of the attribute. More...
 
(instancetype) - initWithPort:protocol:streams:
 Initializes a new instance of the FMLiveSwitchSdpSctpPortAttribute class. More...
 
(int) - port
 Gets the SCTP port. More...
 
(NSString *) - sctpProtocol
 Gets the SCTP sub-protocol (association usage). More...
 
(int) - streams
 Gets the number of incoming streams. More...
 
- Instance Methods inherited from FMLiveSwitchSdpAttribute
(FMLiveSwitchSdpAttributeType) - attributeType
 Gets this Attribute's Type. More...
 
(NSString *) - description
 Converts this instance to a string. More...
 
(instancetype) - init
 
(FMLiveSwitchSdpAttributeCategory) - multiplexingCategory
 Gets the Multiplexing Category of this Attribute. More...
 
(void) - setAttributeType:
 Sets this Attribute's Type. More...
 
(void) - setMultiplexingCategory:
 Sets the Multiplexing Category of this Attribute. More...
 

Class Methods

(FMLiveSwitchSdpSctpMapAttribute *) + fromAttributeValue:
 Initializes a new instance of the FMLiveSwitchSdpSctpPortAttribute class. More...
 
(FMLiveSwitchSdpSctpMapAttribute *) + mapAttributeWithPort:protocol:streams:
 Initializes a new instance of the FMLiveSwitchSdpSctpPortAttribute class. More...
 
- Class Methods inherited from FMLiveSwitchSdpAttribute
(FMLiveSwitchSdpAttribute *) + attribute
 
(FMLiveSwitchSdpAttribute *) + createAttributeWithName:value:
 Creates an attribute. More...
 
(NSString *) + getTypeNameWithType:
 Gets the name of the attribute type. More...
 
(bool) + isMediaLevelWithType:
 Determines whether the type applies to media streams. More...
 
(bool) + isSessionLevelWithType:
 Determines whether the type applies to sessions. More...
 
(FMLiveSwitchSdpAttribute *) + parseWithS:
 Creates an FMLiveSwitchSdpConnectionData instance from a string. More...
 

Detailed Description

AB: Legacy attribute.

To be removed when Firefox and Chrome stop using it. The sctpmap attribute maps from a port number (as used in an "m=" line) to an encoding name denoting the payload format to be used on top of the SCTP association or the actual protocol running on top of it. Last appears in https://tools.ietf.org/html/draft-ietf-mmusic-sctp-sdp-06#page-6 Has been replaced in subsequent drafts but is used in Firefox and Chrome for now.

Method Documentation

◆ fromAttributeValue:

+ (FMLiveSwitchSdpSctpMapAttribute*) fromAttributeValue: (NSString *)  value

Initializes a new instance of the FMLiveSwitchSdpSctpPortAttribute class.

Parameters
valueThe attribute value.

◆ getAttributeValue

- (NSString*) getAttributeValue

Gets the internal value of the attribute.

Implements FMLiveSwitchSdpAttribute.

◆ initWithPort:protocol:streams:

- (instancetype) initWithPort: (int)  port
protocol: (NSString *)  protocol
streams: (int)  streams 

Initializes a new instance of the FMLiveSwitchSdpSctpPortAttribute class.

Parameters
portThe SCTP port.
protocolThe protocol.
streamsThe streams.

◆ mapAttributeWithPort:protocol:streams:

+ (FMLiveSwitchSdpSctpMapAttribute*) mapAttributeWithPort: (int)  port
protocol: (NSString *)  protocol
streams: (int)  streams 

Initializes a new instance of the FMLiveSwitchSdpSctpPortAttribute class.

Parameters
portThe SCTP port.
protocolThe protocol.
streamsThe streams.

◆ port

- (int) port

Gets the SCTP port.

◆ sctpProtocol

- (NSString*) sctpProtocol

Gets the SCTP sub-protocol (association usage).

◆ streams

- (int) streams

Gets the number of incoming streams.