Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Media

An SDP media description with a transport protocol of "RTP/AVP" or "RTP/SAVP".

Hierarchy

  • Media
    • Media

Index

Constructors

constructor

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

    Parameters

    • mediaType: string

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

    • transportPort: number

      The transport port.

    • transportProtocol: string

      The transport protocol.

    • associationUsage: string

      The association usage.

    Returns Media

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 getDtlsSctpTransportProtocol

  • getDtlsSctpTransportProtocol(): string
  • Gets the protocol keyword for the SCTP over DTLS data profile.

    Returns string

Static getSctpDtlsTransportProtocol

  • getSctpDtlsTransportProtocol(): string
  • Gets the protocol keyword for the DTLS over SCTP data profile.

    Returns string

Static getSctpTransportProtocol

  • getSctpTransportProtocol(): string
  • Gets the protocol keyword for the SCTP data profile.

    Returns string

Static getTcpDtlsSctpTransportProtocol

  • getTcpDtlsSctpTransportProtocol(): string
  • Gets the protocol keyword for the SCTP over DTLS over TCP data profile.

    Returns string

Static getUdpDtlsSctpTransportProtocol

  • getUdpDtlsSctpTransportProtocol(): string
  • Gets the protocol keyword for the SCTP over DTLS over UDP data profile.

    Returns string

Static getWebRtcDatachannelAssociationUsage

  • getWebRtcDatachannelAssociationUsage(): string
  • Gets the Association Usage name registry for WebRTC Datachannel.

    Returns string

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

Static supportsEncryption

  • supportsEncryption(protocol: string): boolean
  • Returns a value indicating whther a given protocol supports encryption.

    Parameters

    • protocol: string

      Protocol keyword.

    Returns boolean

    Value indicating whther a given protocol supports encryption.