relaxInputConstraint
function relaxInputConstraint(
kind,
input,
devices):
| undefined
| InputDeviceConstraint;
Relax input constraints to enable looking up the device by deviceId as well
as label as a fallback as a best effort to get a similar device when
possible. If the the device is found we will use the exact constraint otherwise
we will use the ideal.
Parameters
| Parameter | Type | Description |
|---|---|---|
kind | "audioinput" | "videoinput" | - |
input | | undefined | InputDeviceConstraint | The input constraints to be relaxed |
devices | IndexedDevices | The current device list |
Returns
| undefined
| InputDeviceConstraint