Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CharacterSetAttribute

This specifies the character set to be used to display the session name and information data. By default, the ISO-10646 character set in UTF-8 encoding is used. If a more compact representation is required, other character sets may be used. For example, the ISO 8859-1 is specified with the following SDP attribute:

a=charset:ISO-8859-1

Hierarchy

  • Attribute
    • CharacterSetAttribute

Index

Constructors

constructor

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

    Parameters

    • characterSet: string

      The character set to be used to display the session name and information data.

    Returns CharacterSetAttribute

Properties

Private _characterSet

_characterSet: 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

getCharacterSet

  • getCharacterSet(): string
  • Gets the character set to be used to display the session name and information data.

    Returns string

getTypeString

  • getTypeString(): string
  • Returns string

setAttributeType

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

    Parameters

    • value: AttributeType

    Returns void

Private setCharacterSet

  • setCharacterSet(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): CharacterSetAttribute
  • Initializes a new instance of the fm.icelink.sdp.characterSetAttribute class.

    Parameters

    • value: string

      The attribute value.

    Returns CharacterSetAttribute

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