Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapAttribute

AB: Legacy attribute. To be removed when Firefox and Chrome stop using it. The sctpmap attribute maps from a port number (as used in an "m=" line) to an encoding name denoting the payload format to be used on top of the SCTP association or the actual protocol running on top of it. Last appears in https://tools.ietf.org/html/draft-ietf-mmusic-sctp-sdp-06#page-6 Has been replaced in subsequent drafts but is used in Firefox and Chrome for now.

Hierarchy

  • Attribute
    • MapAttribute

Index

Constructors

constructor

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

    Parameters

    • port: number

      The SCTP port.

    • protocol: string

      The protocol.

    • streams: number

      The streams.

    Returns MapAttribute

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

    Returns MapAttribute

Properties

Private _port

_port: number
internal

Private _sctpProtocol

_sctpProtocol: string
internal

Private _streams

_streams: number
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

getPort

  • getPort(): number
  • Gets the SCTP port.

    Returns number

getSctpProtocol

  • getSctpProtocol(): string
  • Gets the SCTP sub-protocol (association usage).

    Returns string

getStreams

  • getStreams(): number
  • Gets the number of incoming streams.

    Returns number

getTypeString

  • getTypeString(): string
  • Returns string

setAttributeType

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

    Parameters

    • value: AttributeType

    Returns void

Private setPort

  • setPort(value: number): void
  • internal

    Parameters

    • value: number

    Returns void

Private setSctpProtocol

  • setSctpProtocol(value: string): void
  • internal

    Parameters

    • value: string

    Returns void

Private setStreams

  • setStreams(value: number): void
  • internal

    Parameters

    • value: number

    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): MapAttribute
  • Initializes a new instance of the fm.icelink.sdp.sctp.portAttribute class.

    Parameters

    • value: string

      The attribute value.

    Returns MapAttribute

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