Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to mute twilio calls in javascript

I am able to mute the sound going into the microphone, but not the sound coming out of the speakers. To be specific, I'm only trying to mute the Twilio call, not other sounds in the browser, and certainly not system sounds.

like image 654
Trevor Avatar asked Mar 17 '26 01:03

Trevor


1 Answers

Its straightforward using the Javascript 1.4 library, without needing conference calls etc.

https://www.twilio.com/docs/api/client/connection

e.g.

Twilio.Device.activeConnection().mute(true);
like image 114
Dave Glassborow Avatar answered Mar 19 '26 15:03

Dave Glassborow