hasChangedInput
function hasChangedInput(oldInput, newInput): boolean;
An utility function to check the input device has been changed
Parameters
| Parameter | Type | Description |
|---|---|---|
oldInput | | undefined | MediaDeviceInfoLike | The previous input device |
newInput | | undefined | MediaDeviceInfoLike | The current input device |
Returns
boolean