Browser SDK
Build voice, video and chat applications for the browser
v4
Stable
1isValidDevice(deviceInfo): Promise<boolean>
Checks whether a device is still available and usable.
The device to validate, or null. See MediaDeviceInfo.
null
MediaDeviceInfo
Promise<boolean>
true if the device is valid and available. Returns false for null, audio output devices, or unavailable devices.
true
false
1await client.isValidDevice(deviceInfo);