resolveMediaDeviceConstraints
function resolveMediaDeviceConstraints(constraints?, base?): boolean | MediaTrackConstraints | undefined;
Internal
Resolve constraints and mediaTrackConstraints by checking the type and try to return the best possible from mediaTrackConstraints.
Parameters
| Parameter | Type |
|---|---|
constraints? | InputDeviceConstraint |
base? | boolean | MediaTrackConstraints |
Returns
boolean | MediaTrackConstraints | undefined