isDeviceGranted
function isDeviceGranted(device): boolean;
Check if provided device is a permission-granted device by inspecting the device label
Parameters
| Parameter | Type | Description |
|---|---|---|
device | MediaDeviceInfoLike | The device to check |
Returns
boolean
See
https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/label#value