Mute a Call Member

Overview

This guide covers muting and unmuting members to a conversation.

Before you begin, make sure you added the SDK to your app and you are able to make or receive calls.

Mute

Mute a member to disables others from hearing the muted member. You can mute your own member or others.

//Mute Member
member.mute(true);

//Mute my Member
conversation.me.mute(true);

val muteListener = object : NexmoRequestListener<NexmoCallMember> {
    override fun onSuccess(callMember: NexmoCallMember?) {
        Log.d("TAG", "Member muted $callMember")
    }

    override fun onError(apiError: NexmoApiError) {
        Log.d("TAG", "Error: Mute member ${apiError.message}")
    }
}

// Mute member
callMember.mute(true, muteListener)

// Mute my member
call?.myCallMember?.mute(true, muteListener)

// Mute whole call
call?.mute(true)
NexmoRequestListener<NexmoCallMember> muteListener = new NexmoRequestListener<NexmoCallMember>() {
    @Override
    public void onSuccess(NexmoCallMember callMember) {
        Timber.d("Member muted " + callMember);
    }

    @Override
    public void onError(NexmoApiError apiError) {
        Timber.d("Error: Mute member " + apiError.getMessage());
    }
};

// Mute member
callMember.mute(true, muteListener);

// Mute my member
call.getMyCallMember().mute(true, muteListener);

// Mute whole call
call.mute(true);
//Mute Member
member.mute(true)

//Mute my Member
call.myCallMember.mute(true)

//Mute Member
[callMember mute:YES];

//Mute my Member
[myCall.myCallMember mute:YES];

Unmute

Unmute a member to allow others to hear a previously muted member.

member.mute(false);

//Unmute my Member
conversation.me.mute(false);

// Unmute member
callMember.mute(false, muteListener)

// Unmute my member
call?.myCallMember?.mute(false, muteListener)

// Unmute whole call
call?.mute(false)
// Unmute member
callMember.mute(false, muteListener);

// Unmute my member
call.getMyCallMember().mute(false, muteListener);

// Unmute whole call
call.mute(false);
member.mute(false)

//Unmute my Member
call.myCallMember.mute(false)

[callMember mute:NO];

//Unmute my Member
[myCall.myCallMember mute:NO];