Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultSDP

Implements SDP. SDP also includes a few helper functions for parsing string.

Hierarchy

  • DefaultSDP

Implements

Index

Constructors

constructor

Properties

sdp

sdp: string

Static rfc7587HighestBitrate

rfc7587HighestBitrate: number = 510000

Static rfc7587LowestBitrate

rfc7587LowestBitrate: number = 6000

Methods

clone

copyVideo

hasCandidates

  • hasCandidates(): boolean

hasCandidatesForAllMLines

  • hasCandidatesForAllMLines(): boolean

hasVideo

  • hasVideo(): boolean

lines

  • lines(): string[]

preferH264IfExists

ssrcForVideoSendingSection

  • ssrcForVideoSendingSection(): string

videoSendSectionHasDifferentSSRC

  • videoSendSectionHasDifferentSSRC(prevSdp: SDP): boolean

withAudioMaxAverageBitrate

  • withAudioMaxAverageBitrate(maxAverageBitrate: number | null): DefaultSDP

withBandwidthRestriction

  • withBandwidthRestriction(maxBitrateKbps: number, isUnifiedPlan: boolean): DefaultSDP

withBundleAudioVideo

withOldFashionedMungingSimulcast

  • withOldFashionedMungingSimulcast(videoSimulcastLayerCount: number): DefaultSDP

withUnifiedPlanFormat

withoutCandidateType

withoutServerReflexiveCandidates

Static candidateType

  • candidateType(sdpLine: string): string | null

Static candidateTypeFromString

Static extractSSRCFromAttributeLine

  • extractSSRCFromAttributeLine(ssrcMediaAttributeLine: string): number

Static extractSSRCsFromFIDGroupLine

  • extractSSRCsFromFIDGroupLine(figGroupLine: string): string

Static findActiveCameraSection

  • findActiveCameraSection(sections: string[]): number

Static isRTPCandidate

  • isRTPCandidate(candidate: string): boolean

Static linesToSDP

Static matchPrefix

  • matchPrefix(blob: string, prefix: string): string[]

Static parseSSRCMedia

  • parseSSRCMedia(ssrcMediaAttributeLine: string): [number, string, string]

Static splitLines

  • splitLines(blob: string): string[]

Static splitSections

  • splitSections(sdp: string): string[]

Generated using TypeDoc