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.

member.mute(true);

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

NexmoRequestListener<CallMember> listener = new NexmoRequestListener<>() {
        @Override
        public void onError(NexmoApiError nexmoApiError) {
            //Handle error
        }

        @Override
        public void onSuccess(CallMember member) {
            //Handle success
        }
};

member.mute(ActionStatus.ON, listener);

//Mute my Member
call.mute(ActionStatus.ON, listener);

val listener = object : NexmoRequestListener<CallMember> {
    override fun onError(nexmoApiError: NexmoApiError) {
            TODO("Handle error")
        }

        override fun onSuccess(callMember: CallMember) {
            TODO("Handle success")
        }
    }

member.mute(ActionStatus.ON, listener)

//Mute my Member
call.mute(ActionStatus.ON, listener)

member.mute(true)

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

[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);

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

NexmoRequestListener<CallMember> listener = new NexmoRequestListener<>() {
        @Override
        public void onError(NexmoApiError nexmoApiError) {
            //Handle error
        }

        @Override
        public void onSuccess(CallMember member) {
            //Handle success
        }
};

member.mute(ActionStatus.OFF, listener);

//Mute my Member
call.mute(ActionStatus.OFF, listener);

val listener = object : NexmoRequestListener<CallMember> {
    override fun onError(nexmoApiError: NexmoApiError) {
            TODO("Handle error")
        }

        override fun onSuccess(callMember: CallMember) {
            TODO("Handle success")
        }
    }

member.mute(ActionStatus.OFF, listener)

//Mute my Member
call.mute(ActionStatus.OFF, listener)

member.mute(false)

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

[callMember mute:NO];

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