FMLiveSwitchSdpSdpLanguageAttribute Class Reference

This can be a session-level attribute or a media-level attribute. More...

Instance Methods

(NSString *) - getAttributeValue
 Gets the internal value of the attribute. More...
 
(instancetype) - initWithLanguageTag:
 Initializes a new instance of the FMLiveSwitchSdpSdpLanguageAttribute class. More...
 
(NSString *) - languageTag
 Gets the language for either the session description (if used as a session-level attribute) or any media-level SDP information field associated with that media (if used as a media-level attribute). 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

(FMLiveSwitchSdpSdpLanguageAttribute *) + fromAttributeValue:
 Initializes a new instance of the FMLiveSwitchSdpSdpLanguageAttribute class. More...
 
(FMLiveSwitchSdpSdpLanguageAttribute *) + sdpLanguageAttributeWithLanguageTag:
 Initializes a new instance of the FMLiveSwitchSdpSdpLanguageAttribute 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

This can be a session-level attribute or a media-level attribute.

As a session-level attribute, it specifies the language for the session description. As a media-level attribute, it specifies the language for any media-level SDP information field associated with that media. Multiple sdplang attributes can be provided either at session or media level if multiple languages in the session description or media use multiple languages, in which case the order of the attributes indicates the order of importance of the various languages in the session or media from most important to least important.

Method Documentation

◆ fromAttributeValue:

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

Initializes a new instance of the FMLiveSwitchSdpSdpLanguageAttribute class.

Parameters
valueThe attribute value.

◆ getAttributeValue

- (NSString*) getAttributeValue

Gets the internal value of the attribute.

Implements FMLiveSwitchSdpAttribute.

◆ initWithLanguageTag:

- (instancetype) initWithLanguageTag: (NSString *)  languageTag

Initializes a new instance of the FMLiveSwitchSdpSdpLanguageAttribute class.

Parameters
languageTagThe language for either the session description (if used as a session-level attribute) or any media-level SDP information field associated with that media (if used as a media-level attribute).

◆ languageTag

- (NSString*) languageTag

Gets the language for either the session description (if used as a session-level attribute) or any media-level SDP information field associated with that media (if used as a media-level attribute).

◆ sdpLanguageAttributeWithLanguageTag:

+ (FMLiveSwitchSdpSdpLanguageAttribute*) sdpLanguageAttributeWithLanguageTag: (NSString *)  languageTag

Initializes a new instance of the FMLiveSwitchSdpSdpLanguageAttribute class.

Parameters
languageTagThe language for either the session description (if used as a session-level attribute) or any media-level SDP information field associated with that media (if used as a media-level attribute).