public interface NexmoMediaActionEventListener
Interface definition for a callback to be invoked when call is muted (muted byuser) or earmuf (muted by other user)
Add media action listener:
conversation.addMediaActionEventListener(new NexmoMediaActionEventListener(){ @Override public void onMute(@NonNull NexmoMediaActionEvent event) { Log.d("onMute", "Got" + event.getMediaActionState() + " :" + event.getMediaActionType()); } @Override public void onEarmuff(@NonNull NexmoMediaActionEvent event) { Log.d("onEarmuff", "Got" + event.getMediaActionState() + " :" + event.getMediaActionType()); } });
In order to send a NexmoMediaActionEvent
to NexmoCall.mute(boolean)
or
NexmoMember.enableEarmuff(NexmoRequestListener)
.
Modifier and Type | Method and Description |
---|---|
void |
onEarmuff(NexmoMediaActionEvent nexmoMediaActionEvent)
Dispatches when earmuff changes related to a
NexmoConversation . |
void |
onMute(NexmoMediaActionEvent nexmoMediaActionEvent)
Dispatches when mute changes related to a
NexmoConversation . |
void onMute(NexmoMediaActionEvent nexmoMediaActionEvent)
NexmoConversation
.nexmoMediaActionEvent
- the dispatched NexmoMediaActionEvent
eventvoid onEarmuff(NexmoMediaActionEvent nexmoMediaActionEvent)
NexmoConversation
.nexmoMediaActionEvent
- the dispatched NexmoMediaActionEvent
event