Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SendOnlyAttribute

This specifies that the tools should be started in send-only mode. An example may be where a different unicast address is to be used for a traffic destination than for a traffic source. In such a case, two media descriptions may be used, one sendonly and one recvonly. It can be either a session- or media-level attribute, but would normally only be used as a media attribute. It is not dependent on charset. Note that sendonly applies only to the media, and any associated control protocol (e.g., RTCP) SHOULD still be received and processed as normal.

Hierarchy

  • DirectionAttribute
    • SendOnlyAttribute

Index

Constructors

constructor

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

    Returns SendOnlyAttribute

Methods

getAttributeType

  • getAttributeType(): AttributeType
  • Gets this Attribute's Type.

    Returns AttributeType

Protected getAttributeValue

  • getAttributeValue(): string
  • Gets the internal value of the attribute.

    Returns string

getStreamDirection

  • getStreamDirection(): StreamDirection
  • Gets the stream direction.

    Returns StreamDirection

getTypeString

  • getTypeString(): string
  • Returns string

setAttributeType

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

    Parameters

    • value: AttributeType

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

    Parameters

    • value: string

      The attribute value.

    Returns SendOnlyAttribute

Static generateDirectionAttribute

  • generateDirectionAttribute(direction: StreamDirection): DirectionAttribute
  • Creates a DirectionAttribute for a required direction.

    Parameters

    • direction: StreamDirection

      Direction.

    Returns DirectionAttribute

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