setBandwidth({ kbs, trackConstraints? })
Prebuilt
Custom
Sets a soft cap on the upstream camera video bandwidth.
In SFU mode (the default for all calls), kbs caps the total upstream bandwidth across all simulcast layers — Daily sends as many layers as fit within the cap, starting from the lowest.
In peer-to-peer mode, kbs is a per-peer bitrate target.
Parameters
Upstream camera bandwidth cap in kilobits per second. Pass
'NO_CAP' to remove a previously set cap. Does not include audio or screenshare bandwidth.Deprecated in 0.75.0. Use
updateInputSettings() instead.Return value
Returnsthis for chaining.