Can you dynamically control the audio levels between individual Participants in a Video Room?

dtoomey
dtoomey admin
edited June 7 in Video & WebRTC

Audio levels can be managed using the platform capabilities; Twilio does not provide an API for these controls. For example, in web browsers, the Web Audio API allows to audio level to be controlled in a per-track basis, see https://www.w3.org/TR/webaudio/.

Tagged:

Comments

  • dtoomey
    dtoomey admin
    edited March 25

    The following code can be used to set the volume on a HTML audio element.

    var aud = document.getElementById("participantAudio"); aud.volume = 0.2;

    One approach to mute a participant's audio track is to detach the track from the DOM element using the track.detach() method.

Sign In or Register to comment.