Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Origin

An SDP origin element.

Hierarchy

  • Origin

Index

Constructors

constructor

  • new Origin(unicastAddress: string, username: string): Origin
  • new Origin(unicastAddress: string): Origin
  • Initializes a new instance of the fm.icelink.sdp.origin class.

    Parameters

    • unicastAddress: string

      The address of the machine from which the session was created.

    • username: string

      The user's login on the originating host.

    Returns Origin

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

    Parameters

    • unicastAddress: string

      The address of the machine from which the session was created.

    Returns Origin

Properties

Private _addressType

_addressType: string
internal

Private _networkType

_networkType: string
internal

Private _sessionId

_sessionId: number
internal

Private _sessionVersion

_sessionVersion: number
internal

Private _unicastAddress

_unicastAddress: string
internal

Private _username

_username: string
internal

Methods

Private generateSessionId

  • generateSessionId(): number
  • internal

    Returns number

Private generateSessionVersion

  • generateSessionVersion(): number
  • internal

    Returns number

getAddressType

  • getAddressType(): string
  • Gets the type of the address. See fm.icelink.sdp.origin.addressType for possible values.

    Returns string

getNetworkType

  • getNetworkType(): string
  • Gets the type of network. See fm.icelink.sdp.origin.networkType for possible values.

    Returns string

getSessionId

  • getSessionId(): number
  • Gets the globally unique identifier for the session.

    Returns number

getSessionVersion

  • getSessionVersion(): number
  • Gets the version number for the session.

    Returns number

getTypeString

  • getTypeString(): string
  • Returns string

getUnicastAddress

  • getUnicastAddress(): string
  • Gets the address of the machine from which the session was created.

    Returns string

getUsername

  • getUsername(): string
  • Gets the user's login on the originating host.

    Returns string

setAddressType

  • setAddressType(value: string): void
  • Sets the type of the address. See fm.icelink.sdp.origin.addressType for possible values.

    Parameters

    • value: string

    Returns void

setNetworkType

  • setNetworkType(value: string): void
  • Sets the type of network. See fm.icelink.sdp.origin.networkType for possible values.

    Parameters

    • value: string

    Returns void

setSessionId

  • setSessionId(value: number): void
  • Sets the globally unique identifier for the session.

    Parameters

    • value: number

    Returns void

setSessionVersion

  • setSessionVersion(value: number): void
  • Sets the version number for the session.

    Parameters

    • value: number

    Returns void

setUnicastAddress

  • setUnicastAddress(value: string): void
  • Sets the address of the machine from which the session was created.

    Parameters

    • value: string

    Returns void

setUsername

  • setUsername(value: string): void
  • Sets the user's login on the originating host.

    Parameters

    • value: string

    Returns void

toString

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

    Returns string

Static parse

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

    Parameters

    • s: string

      The string to parse.

    Returns Origin