Call Member Actions

Below are some actions you can enable or disable on members in a call.

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];

Earmuff

Earmuff a member to disables the member from hearing other members. You can earmuff your own member or others.

member.earmuff(true);

//Earmuff my Member
conversation.me.earmuff(true);

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

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

member.earmuff(ActionStatus.ON, listener);

//Earmuff my Member
call.earmuff(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.earmuff(ActionStatus.ON, listener)

//Earmuff my Member
call.earmuff(ActionStatus.ON, listener)

member.earmuff(true)

//Earmuff my Member
call.myCallMember.earmuff(true)

[callMember earmuff:YES];

//Earmuff my Member
[myCall.myCallMember earmuff:YES];