Skip to main content

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

ParameterType
constraints?InputDeviceConstraint
base?boolean | MediaTrackConstraints

Returns

boolean | MediaTrackConstraints | undefined