hasAnyInputs
function hasAnyInputs(devices, grantedOnly): [boolean, boolean];
Check if provided devices have any video and audio inputs
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
devices | MediaDeviceInfoLike[] | undefined | The devices to lookup |
grantedOnly | boolean | false | When it is true, the device label is also taken into consideration |
Returns
[boolean, boolean]
A tuple of [anyAudioInput, anyVideoInput], e.g. [true, false]
means there is audio input but no video input
Default Value
false