defaultVideoConstraints

View as MarkdownOpen in Claude
1get defaultVideoConstraints(): MediaTrackConstraints | undefined
2set defaultVideoConstraints(value: MediaTrackConstraints | undefined)

Default video track constraints applied when video is enabled without explicit constraints.

Parameters

value
MediaTrackConstraints | undefined

Default constraints applied when capturing video input. Pass undefined to clear. See MediaTrackConstraints.

Examples

1// Read
2console.log(client.preferences.defaultVideoConstraints);
3
4// Write
5client.preferences.defaultVideoConstraints = { width: { ideal: 1280 }, height: { ideal: 720 } };