Closed ivansivaklepsi closed 4 years ago
Hi @ivansivaklepsi ,
Thanks for writing in with this issue. I think Chrome needs to be restarted for the default device change to take effect. The SDK does not have any control over it. I will close this issue, but we can continue the conversation here if you need more clarification.
Thanks,
Manjesh Malavalli JSDK Team
Hi, @manjeshbhargav I have a similar problem
User case The user connects to the video chat from their laptop audio and microphone work correctly
after that, the user connects the airpods audio and microphone work correctly
after the user disables the airpods , the result is that the user loses the sound and microphone.
How can I change audio tracks? I'm trying to do something similar to what ivansivaklepsi wrote above
Hello,
I encountered this problem when trying to switch audio input track using
CreateLocalTrackOptions
->deviceId
set todefault
when default track's name changes due to user changing it in Sound in System Preferences or by disconnecting their headphones etc.Performing device changes using the code below with a specific
deviceId
, rather than just "default", the devices change just fine, however, when user has "default" device selected, performs the one of the changes mentioned above, the code detects it, callsreplaceAudioTrack
with "default" for thedeviceId
, tracks stop as expected, but the newly attached track is still the same and not the new one from the System.Also worth mentioning is that when you enter the website with
default
input device being e.g. Headphones Micdefault
in System Preferences to be Built-in Mic insteaddefault
, which is now labelled correctly as Built-in Micdefault
device which was when you entered the app, so that would be the Headphones Mic, instead of Built-in Mic, which user changed to.The steps above work as expected without any complications in e.g. Google Meet
Code to reproduce the issue:
Expected behavior:
Changing
default
audio input device in the System or anyhow on background should be registered by Twilio when I want to stop the currentdefault
and publish newdefault
track.Actual behavior:
Described with steps above
Software versions: