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

dtoomey
dtoomey admin
edited June 2021 in Video, Live & 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 2021

    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.

If this is an emergency, please contact Twilio Support. This is not an official Support channel. https://support.twilio.com/
Have an urgent question?
Please contact Twilio Support. This is not an official Support channel.
Contact Support