setInputDevicesConstraints

View as MarkdownOpen in Claude
1setInputDevicesConstraints(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

1await selfParticipant.setInputDevicesConstraints(constraints);