Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    Attribute
    LanguageAttribute
    Inherited Members
    Attribute.AttributeType
    Attribute.MultiplexingCategory
    Attribute.GetTypeName(Type)
    Attribute.IsSessionLevel(Type)
    Attribute.IsMediaLevel(Type)
    Attribute.CreateAttribute(String, String)
    Attribute.ToString()
    Attribute.Parse(String)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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
    Overrides
    Attribute.GetAttributeValue()
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0