warmAudioPlayer
function warmAudioPlayer(context, options?): Promise<void>;Defined in: audio-player.ts:359
Start loading what createAudioPlayer waits for, both at once: the jitter buffer’s worklet module on context
and, with loss concealment, the libopus WebAssembly module. A player created on the context later finds them loaded
or loading, and loads neither again. Call it as soon as the context exists, for example while the connection or the
catalog is on its way, so a join does not wait for them after the catalog. Resolves once both are ready; rejects
only when the worklet module fails (without libopus a player decodes with WebCodecs, as createAudioPlayer does).
Optional: a player created without it loads both itself, as before.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
context |
AudioPlayerContext |
options? |
WarmAudioPlayerOptions |
Returns
Section titled “Returns”Promise<void>