Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • Attribute
    • LanguageAttribute

Index

Constructors

constructor

  • Initializes a new instance of the fm.icelink.sdp.languageAttribute class.

    Parameters

    • languageTag: string

      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).

    Returns LanguageAttribute

Properties

Private _languageTag

_languageTag: string
internal

Methods

getAttributeType

  • getAttributeType(): AttributeType
  • Gets this Attribute's Type.

    Returns AttributeType

Protected getAttributeValue

  • getAttributeValue(): string
  • Gets the internal value of the attribute.

    Returns string

getLanguageTag

  • getLanguageTag(): string
  • 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).

    Returns string

getTypeString

  • getTypeString(): string
  • Returns string

setAttributeType

  • setAttributeType(value: AttributeType): void
  • Sets this Attribute's Type.

    Parameters

    • value: AttributeType

    Returns void

Private setLanguageTag

  • setLanguageTag(value: string): void
  • internal

    Parameters

    • value: string

    Returns void

toString

  • toString(): string
  • Converts this instance to a string.

    Returns string

Static createAttribute

  • createAttribute(name: string, value: string): Attribute
  • Creates an attribute.

    Parameters

    • name: string

      The name.

    • value: string

      The value.

    Returns Attribute

Static fromAttributeValue

  • fromAttributeValue(value: string): LanguageAttribute
  • Initializes a new instance of the fm.icelink.sdp.languageAttribute class.

    Parameters

    • value: string

      The attribute value.

    Returns LanguageAttribute

Static getTypeName

  • getTypeName(type: Type): string
  • Gets the name of the attribute type.

    Parameters

    • type: Type

      The attribute type.

    Returns string

Static isMediaLevel

  • isMediaLevel(type: Type): boolean
  • Determines whether the type applies to media streams.

    Parameters

    • type: Type

      The type.

    Returns boolean

Static isSessionLevel

  • isSessionLevel(type: Type): boolean
  • Determines whether the type applies to sessions.

    Parameters

    • type: Type

      The type.

    Returns boolean

Static parse

  • parse(s: string): Attribute
  • Creates an fm.icelink.sdp.connectionData instance from a string.

    Parameters

    • s: string

      The string to parse.

    Returns Attribute