AudioPlayerOptions
Defined in: audio-player.ts:55
Options for createAudioPlayer.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Context extends AudioPlayerContext |
Properties
Section titled “Properties”context
Section titled “context”context: Context;Defined in: audio-player.ts:57
The one context every input plays through. Create or resume it from a user gesture.
lossConcealment?
Section titled “lossConcealment?”lossConcealment?: boolean;Defined in: audio-player.ts:65
Fill lost Opus frames instead of playing silence. Default true: Opus inputs decode with libopus compiled to WebAssembly, which conceals a missing frame (packet-loss concealment) and rebuilds it from the next frame’s in-band FEC when the encoder sent one; WebCodecs’ AudioDecoder can do neither. False, or where WebAssembly is unavailable: every input decodes with WebCodecs, and a lost frame plays as silence. Other codecs always use WebCodecs.