FMLiveSwitchSdpLanguageAttribute 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 FMLiveSwitchSdpLanguageAttribute class. More...
 
(NSString *) - languageTag
 Gets the default language for the session being described (if used as a session-level attribute) or the language for a media stream (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

(FMLiveSwitchSdpLanguageAttribute *) + fromAttributeValue:
 Initializes a new instance of the FMLiveSwitchSdpLanguageAttribute class. More...
 
(FMLiveSwitchSdpLanguageAttribute *) + languageAttributeWithLanguageTag:
 Initializes a new instance of the FMLiveSwitchSdpLanguageAttribute 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 default language for the session being described. As a media- level attribute, it specifies the language for that media, overriding any session-level language specified. Multiple lang attributes can be provided either at session or media level if 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:

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

Initializes a new instance of the FMLiveSwitchSdpLanguageAttribute 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 FMLiveSwitchSdpLanguageAttribute class.

Parameters
languageTagThe default language for the session being described (if used as a session-level attribute) or the language for a media stream (if used as a media-level attribute).

◆ languageAttributeWithLanguageTag:

+ (FMLiveSwitchSdpLanguageAttribute*) languageAttributeWithLanguageTag: (NSString *)  languageTag

Initializes a new instance of the FMLiveSwitchSdpLanguageAttribute class.

Parameters
languageTagThe default language for the session being described (if used as a session-level attribute) or the language for a media stream (if used as a media-level attribute).

◆ languageTag

- (NSString*) languageTag

Gets the default language for the session being described (if used as a session-level attribute) or the language for a media stream (if used as a media-level attribute).