Open tashikrispcall opened 1 month ago
Hi @tashikrispcall , thanks for reaching out! Are you trying to mute these sounds? https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#deviceoptionssounds-properties-and-default-sounds
Or are you trying to mute the audio of the remote party? For example, if Alice calls Bob, are you trying to mute Bob?
Hi @charliesantos , yes, I'm trying to mute the audio of the remote party i.e. if I'm in call with Bob, I'm trying to mute Bob.
There is no mute API for remote party at the moment. However, you can get the remote stream using call.getRemoteStream()
. This is a MediaStream object that you can use to mute the audio track. For example
call.getRemoteStream().getAudioTracks().forEach(track => track.enabled = false);
Thanks, I'll try implementing this.
Can we directly set![image](https://github.com/twilio/twilio-voice.js/assets/163370078/bc19db1f-43d4-4755-a791-a08f00401462)
device.audio.speakerDevices
toundefined
to achieve this ? or is there a proper work around ?