&chunkedbuffer
Sender-side backlog control for chunked/WebCodecs publishing.
Also known as: &sendingbuffer
Description
Sets the sender-side chunk backlog target, in milliseconds, for &chunked publishing.
This is not the viewer playout buffer. It does not directly add receiver delay. Use &chunkbuffer, &chunkbufferfloor, &chunkbufferceil, &chunkbufferadaptive, iframe setBufferDelay, and &chunkjitterslack for viewer-side chunked playback tuning.
Usage
If not set, the current base sender backlog target is about 500 ms.
&chunkedbufferor&sendingbufferwithout a value falls back to about 5000 ms.&chunkedbuffer=5000keeps about 5 seconds of chunk backlog on the sender side.&chunkedbuffer=1500reacts quickly to weak peers and is useful for music-sync/mobile profiles.&chunkedbuffer=3000to5000gives more burst tolerance, but adaptation reacts later.&chunkedbuffer=10000gives more backlog headroom on unstable links, but can increase memory use and delay down-adaptation.&sendingbuffer=3000is an alias for the same setting.
Examples
https://vdo.ninja/?push=streamID&chunked&chunkedbuffer=3000
https://vdo.ninja/?push=streamID&chunked&sendingbuffer=5000
https://vdo.ninja/?room=roomname&chunked=2500&chunkedbuffer=7000How it works
The sender encodes media into chunk payloads.
Those payloads are queued for transmission over DataChannels.
&chunkedbufferdefines the sender pacing/adaptation window.Per-peer relief and bitrate adaptation use this window to decide how much backlog is tolerable.
Larger values can tolerate more bursty delivery, while smaller values react sooner when a viewer or route is weak.
Guidelines
1000-2000ms: lower latency and faster weak-peer relief; good for sync/mobile testing3000-5000ms: balanced range for many chunked experiments5000-10000ms: more burst tolerance, but watch memory, queue growth, and adaptation delay
Notes
Requires
&chunkedApplies on the publishing side
Higher values use more memory and can allow more sender backlog
Viewer-side latency is controlled separately
NACK resend cache is controlled separately with
&chunkcache; do not use a hugechunkedbufferjust to keep retransmission history
Related Parameters
&chunked- Enables chunked publishing&chunkbuffer- Viewer playout target for chunked streams&chunknack- Selective retransmission control&chunkcache- Sender resend cache window&retransmit- Relays chunked streams without transcoding
Last updated
Was this helpful?