Skip to main content

hasRequestingDevice

function hasRequestingDevice(
request,
kind,
currentDevices): boolean;

Check if there is a requesting device with respecting to the current devices

Parameters

ParameterTypeDescription
request| undefined | InputDeviceConstraintRequesting input device constraint
kindMediaDeviceKindThe kind of the device
currentDevicesIndexedDevicesThe current indexed devices

Returns

boolean