## OPTIONS

@if (roomOptions) { } @if (roomOptions) {
RoomOptions / RoomConnectOptions
adaptiveStream dynacast disconnectOnPageLeave stopLocalTrackOnUnpublish webAudioMix Force relay candidates
} @if (createLocalTracksOptions) { } @if (createLocalTracksOptions) {
@if (createLocalTracksOptions.video !== undefined) {
VideoCaptureOptions True (default) @if (allowDisablingVideo) { False (no video) } Custom @if (videoOption === 'custom') {
deviceId @for (device of inputVideoDevices; track device) { {{'[' + device.label + '] ' + device.deviceId}} } facingMode @for (mode of ['user','environment','left','right']; track mode) { {{mode}} }
}
} @if (createLocalTracksOptions.audio !== undefined) {
AudioCaptureOptions True (default) @if (allowDisablingAudio) { False (no audio) } Custom @if (audioOption === 'custom') {
autoGainControl echoCancellation noiseSuppression
deviceId channelCount latency sampleRate sampleSize
}
}
} @if (shareScreen) { } @if (shareScreen) {
ScreenShareCaptureOptions
True (default) @if (allowDisablingScreen) { False (no screen) } Custom @if (screenOption == 'custom') {
video audio preferCurrentTab suppressLocalAudioPlayback @if (screenShareCaptureOptions!.video) { displaySurface @for (surface of ['NONE','window','browser','monitor']; track surface) { {{surface}} } } contentHint @for (hint of ['text','detail','motion']; track hint) { {{hint}} } selfBrowserSurface @for (surface of ['include','exclude']; track surface) { {{surface}} } surfaceSwitching @for (surface of ['include','exclude']; track surface) { {{surface}} } systemAudio @for (audio of ['include','exclude']; track audio) { {{audio}} }
Resolution Default Custom @if (customScreenShareResolution) { }
}
} @if (trackPublishOptions) { } @if (trackPublishOptions) {
TrackPublishOptions
simulcast dtx red backupCodec forceStereo stopMicTrackOnMute videoCodec @for (codec of ['vp8','h264','vp9','av1']; track codec) { {{codec | uppercase}} } scalabilityMode @for (mode of ['L1T1','L1T2','L1T3','L2T1','L2T1h','L2T1_KEY','L2T2','L2T2h','L2T2_KEY','L2T3','L2T3h','L2T3_KEY','L3T1','L3T1h','L3T1_KEY','L3T2','L3T2h','L3T2_KEY','L3T3','L3T3h','L3T3_KEY']; track mode) { {{mode}} } name source @for (source of ENUMERATION_SOURCE; track source) { {{source}} } stream
}