Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RedundantAudioEncoder

Hierarchy

  • RedundantAudioEncoder

Index

Constructors

constructor

Properties

Static shouldLog

shouldLog: boolean = false

Static shouldReportStats

shouldReportStats: boolean = false

Methods

setNumRedundantEncodings

  • setNumRedundantEncodings(numRedundantEncodings: number): void

setOpusPayloadType

  • setOpusPayloadType(payloadType: number): void

setRedPayloadType

  • setRedPayloadType(payloadType: number): void

setRedundancyEnabled

  • setRedundancyEnabled(enabled: boolean): void

setupPassthroughTransform

  • setupPassthroughTransform(readable: ReadableStream<any>, writable: WritableStream<any>): void

setupReceiverTransform

  • setupReceiverTransform(readable: ReadableStream<any>, writable: WritableStream<any>): void

setupSenderTransform

  • setupSenderTransform(readable: ReadableStream<any>, writable: WritableStream<any>): void

Static getNumRedundantEncodingsForPacketLoss

  • getNumRedundantEncodingsForPacketLoss(packetLoss: number): [number, boolean]
  • Returns the number of encodings based on packetLoss value. This is used by DefaultTransceiverController to determine when to alert the encoder to update the number of encodings. It also determines if we need to turn off red in cases of very high packet loss to avoid congestion collapse.

    Parameters

    • packetLoss: number

    Returns [number, boolean]

Static initializeWorker

  • initializeWorker(): void

Static log

  • log(msg: string): void

Generated using TypeDoc