Change volume publish stream from app

Sơn IT

New Member
Hello. I have a question . my app can adjust the volume microphone when publishing the stream. If OK, then how ? Thanks
 

Max

Administrator
Staff member
Good day. You can adjust microphone gain as shown in this example:
Code:
    $("#micGainControl").slider({
        range: "min",
        min: 0,
        max: 100,
        value: currentGainValue,
        step: 10,
        animate: true,
        slide: function (event, ui) {
            currentGainValue = ui.value;
            if(publishStream) {
                publishStream.setMicrophoneGain(currentGainValue);
            }
        }
    });
 
Top