defaultVideoConstraints

View as MarkdownOpen in Claude
get defaultVideoConstraints(): MediaTrackConstraints | undefined
set 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

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