Class LanguageAttribute
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.
Inherited Members
Namespace: FM.LiveSwitch.Sdp
Assembly: FM.LiveSwitch.dll
Syntax
public class LanguageAttribute : Attribute
Constructors
LanguageAttribute(String)
Initializes a new instance of the LanguageAttribute class.
Declaration
public LanguageAttribute(string languageTag)
Parameters
Type | Name | Description |
---|---|---|
System.String | languageTag | 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). |
Properties
LanguageTag
Gets or sets 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).
Declaration
public string LanguageTag { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
FromAttributeValue(String)
Initializes a new instance of the LanguageAttribute class.
Declaration
public static LanguageAttribute FromAttributeValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The attribute value. |
Returns
Type | Description |
---|---|
LanguageAttribute |
GetAttributeValue()
Gets the internal value of the attribute.
Declaration
protected override string GetAttributeValue()
Returns
Type | Description |
---|---|
System.String |