Optional
adaptiveAdaptiveStream 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.
Optional
audiodefault options to use when capturing user's audio
Optional
audioaudio output for the room
Optional
disconnectspecifies whether the sdk should automatically disconnect the room on 'pagehide' and 'beforeunload' events
Optional
dynacastenable 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
Optional
Experimental
e2eeOptional
loggerOptional
publishdefault options to use when publishing tracks
Optional
reconnectpolicy to use when attempting to reconnect
Optional
stopshould 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.
Optional
videodefault options to use when capturing user's video
Optional
webmix 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