Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Media

An SDP media element.

Hierarchy

  • Media

Index

Constructors

constructor

  • new Media(mediaType: string, transportPort: number, transportProtocol: string): Media
  • new Media(): Media
  • new Media(mediaType: string, transportPort: number, transportProtocol: string, formatDescription: string): Media
  • Initializes a new instance of the fm.icelink.sdp.media class.

    Parameters

    • mediaType: string

      The media type. See fm.icelink.sdp.media.mediaType for possible values.

    • transportPort: number

      The transport port.

    • transportProtocol: string

      The transport protocol.

    Returns Media

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

    Returns Media

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

    Parameters

    • mediaType: string

      The media type. See fm.icelink.sdp.media.mediaType for possible values.

    • transportPort: number

      The transport port.

    • transportProtocol: string

      The transport protocol.

    • formatDescription: string

      The format description.

    Returns Media

Properties

Private _formatDescription

_formatDescription: string
internal

Private _mediaType

_mediaType: string
internal

Private _numberOfPorts

_numberOfPorts: number
internal

Private _transportPort

_transportPort: number
internal

Private _transportProtocol

_transportProtocol: string
internal

Static Private __fmicelinksdpMediaInitialized

__fmicelinksdpMediaInitialized: boolean = false
internal

Static Private fm_icelink_sdp_Media__defaultNumberOfPorts

fm_icelink_sdp_Media__defaultNumberOfPorts: number
internal

Methods

getFormatDescription

  • getFormatDescription(): string
  • Gets the format description.

    Returns string

getMediaType

  • getMediaType(): string
  • Gets the media type. See fm.icelink.sdp.media.mediaType for possible values.

    Returns string

getNumberOfPorts

  • getNumberOfPorts(): number
  • Gets the number of ports.

    Returns number

getTransportPort

  • getTransportPort(): number
  • Gets the transport port.

    Returns number

getTransportProtocol

  • getTransportProtocol(): string
  • Gets the transport protocol.

    Returns string

getTypeString

  • getTypeString(): string
  • Returns string

setFormatDescription

  • setFormatDescription(value: string): void
  • Sets the format description.

    Parameters

    • value: string

    Returns void

setMediaType

  • setMediaType(value: string): void
  • Sets the media type. See fm.icelink.sdp.media.mediaType for possible values.

    Parameters

    • value: string

    Returns void

setNumberOfPorts

  • setNumberOfPorts(value: number): void
  • Sets the number of ports.

    Parameters

    • value: number

    Returns void

setTransportPort

  • setTransportPort(value: number): void
  • Sets the transport port.

    Parameters

    • value: number

    Returns void

setTransportProtocol

  • setTransportProtocol(value: string): void
  • Sets the transport protocol.

    Parameters

    • value: string

    Returns void

toString

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

    Returns string

Static fmicelinksdpMediaInitialize

  • fmicelinksdpMediaInitialize(): void
  • internal

    Returns void

Static parse

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

    Parameters

    • s: string

      The string to parse.

    Returns Media