setInputDevicesConstraints

View as MarkdownOpen in Claude
setInputDevicesConstraints(constraints): Promise<void>

Updates both audio and video input track constraints for the active call.

Parameters

constraints
{ audio: MediaTrackConstraints; video: MediaTrackConstraints; }Required

Constraints for both audio and video input devices. See MediaTrackConstraints.

Returns

Promise<void>

Examples

await selfParticipant.setInputDevicesConstraints(constraints);