Skip to first unread message

C# Gaming

unread,
May 11, 2017, 1:42:39 PM5/11/17
to EasyRTC
Hello guys good day to all of you i'm having a trouble about muting my microphone via onlick button im doing it like this

audio.js
function muteAudio(){
    easyrtc.enableAudio(false);
}

index.html
<button type="button" id="muteButton" class="btn-cust  btn-trans mutemic" title="Mic" >
<i class="material-icons" onclick = "muteAudio()">mic</i>
</button>

Eric Davies

unread,
May 11, 2017, 11:55:42 PM5/11/17
to EasyRTC
you want easyrtc.enableMicrophone.
enableAudio controls whether audio is included in a subsequently created local mediaStream.

at the time enableAudo was created, there wasn't the ability to mute the microphone.
Reply all
Reply to author
Forward
0 new messages