reverseDeviceId
function reverseDeviceId(id, separator): object;
Reverse the device ID to its original form i.e. MediaDeviceInfo
The device ID here is in the format of groupId:deviceId:kind, be default.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
id | string | undefined | The device ID to reverse |
separator | string | DEVICE_ID_SEPARATOR | The separator used to split the device ID |
Returns
object
| Name | Type |
|---|---|
deviceId | string |
kind | MediaDeviceKind |