OptionaladaptiveAdaptiveStream lets LiveKit automatically manage quality of subscribed video tracks to optimize for bandwidth and CPU. When attached video elements are visible, it'll choose an appropriate resolution based on the size of largest video element it's attached to.
When none of the video elements are visible, it'll temporarily pause the data flow until they are visible again.
Optionalaudiodefault options to use when capturing user's audio
Optionalaudioaudio output for the room
Optionaldisconnectspecifies whether the sdk should automatically disconnect the room on 'pagehide' and 'beforeunload' events
Optionaldynacastenable Dynacast, off by default. With Dynacast dynamically pauses video layers that are not being consumed by any subscribers, significantly reducing publishing CPU and bandwidth usage.
Dynacast will be enabled if SVC codecs (VP9/AV1) are used. Multi-codec simulcast requires dynacast
Optionale2eeOptionalloggerOptionalpublishdefault options to use when publishing tracks
Optionalreconnectpolicy to use when attempting to reconnect
Optional Experimentalsingleonly supported on LiveKit Cloud and LiveKit OSS >= 1.9.2
Optionalstopshould local tracks be stopped when they are unpublished. defaults to true set this to false if you would prefer to clean up unpublished local tracks manually.
Optionalvideodefault options to use when capturing user's video
Optionalwebmix all audio tracks in web audio, helps to tackle some audio auto playback issues allows for passing in your own AudioContext instance, too
Options for when creating a new room