Skip to main content

resolveMediaDeviceConstraints

function resolveMediaDeviceConstraints(constraints?, base?): undefined | boolean | MediaTrackConstraints;

Internal

Resolve constraints and mediaTrackConstraints by checking the type and try to return the best possible from mediaTrackConstraints.

Parameters

ParameterType
constraints?InputDeviceConstraint
base?boolean | MediaTrackConstraints

Returns

undefined | boolean | MediaTrackConstraints