androidioscordovawebrtcphonertc

How to implement mute with PhoneRTC?


I managed to create a video chat in my Cordova app using PhoneRTC. Now, I want to add a button that toggles mute on the local microphone output.

How can I do that?


Solution

  • Use Session.renegotiate.

    For example:

    session.streams.audio = false;
    session.renegotiate();