[BUG] Switching microphone device from system does not work on the first instance #256
Open
7 of 8 tasks
Labels
bug
Something isn't working
or sensitive account information (API keys, credentials, etc.) when reporting this issue.
Code to reproduce the issue:
Adding a reference from code in audioHelper.ts file
Suggested code fix
Expected behavior:
When we are switching microphone device from our system (i.e changing my default device from one inbuilt device to bluetooth device), the voice call should start taking input stream from new default device.
Actual behavior:
When we are switching microphone device from our system (i.e changing my default device from one inbuilt device to bluetooth device), input stream becomes stale and voice cannot be heard by other party on call.
Attached a code update that may be needed to fix this issue. The issue does not happen once setDevices is manually called in twilio sdk api. Once we call setDevices, inputDevice is set and from then on switching microphone device from system is no longer an issue.
this.inputDevice === null || (this.inputDevice !== null && this.inputDevice.deviceId === 'default'
Software versions:
The text was updated successfully, but these errors were encountered: