getDeviceId
function getDeviceId(device, separator): string;
Create a device ID from provided device.
The device ID here is in the format of deviceId:kind, be default.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
device | Pick<MediaDeviceInfoLike, "deviceId" | "kind"> | undefined | The device to create the ID from |
separator | string | DEVICE_ID_SEPARATOR | The separator to use to join the device ID |
Returns
string