Thursday, 11 May 2017

Mute microphone in easyrtc api(node.js)

How can i mute the microphone via onclick function in javascript. im doing it like this

audio.js

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

livestreaming.html

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

But this doesn't work. Can someone help me please.



via TheGinxx009

No comments:

Post a Comment