Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MediaType

Defines valid SDP media types.

Hierarchy

  • MediaType

Index

Methods

getTypeString

  • getTypeString(): string
  • Returns string

Static fromStreamType

  • fromStreamType(streamType: StreamType): string
  • Convert a StreamType enum to an SDP media type.

    Parameters

    • streamType: StreamType

      The StreamType enum.

    Returns string

Static getApplication

  • getApplication(): string
  • Gets the SDP media type meaning "Application".

    Returns string

Static getAudio

  • getAudio(): string
  • Gets the SDP media type meaning "Audio".

    Returns string

Static getMessage

  • getMessage(): string
  • Gets the SDP media type meaning "Message".

    Returns string

Static getText

  • getText(): string
  • Gets the SDP media type meaning "Text".

    Returns string

Static getVideo

  • getVideo(): string
  • Gets the SDP media type meaning "Video".

    Returns string

Static toStreamType

  • toStreamType(mediaType: string): StreamType
  • Converts an SDP media type to a StreamType enum.

    Parameters

    • mediaType: string

      The SDP media type.

    Returns StreamType