| java.lang.Object | |
| ↳ | com.nexmo.sdk.conversation.client.audio.AudioCallManager |
Call Manager. Supports one ongoing call/conversation for now. Created by siltus on 17/09/2017.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| enum | AudioCallManager.AudioCallState | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public static final String[] | MANDATORY_PERMISSIONS | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AudioCallManager(Context context, String conversationId, String memberId, ConversationSignalingChannel conversationSignalingChannel) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
disable(RequestHandler listener)
Disable audio calls in the current conversation.
| ||||||||||
| void |
disableCallStats()
Disable call statistics gathering.
| ||||||||||
| void |
earmuff(Member member, boolean isEarmuff, RequestHandler listener)
Earmuff any member in the current audio call.
| ||||||||||
| void |
earmuff(boolean isEarmuff, RequestHandler listener)
Earmuff self in the current audio call.
| ||||||||||
| void |
enable(AudioCallEventListener listener)
Enable Audio calls in the current conversation.
| ||||||||||
| void |
enableCallStats(int statCallbackInterval, AudioCallStatsListener listener)
Enable sending call stats to the calling application.
| ||||||||||
| Set<AppRTCAudioManager.AudioDevice> | getAvailableAudioRoutes() | ||||||||||
| AudioCallManager.AudioCallState | getState() | ||||||||||
| void |
mute(boolean isMute, RequestHandler listener)
Mute self in the current audio call.
| ||||||||||
| void |
mute(Member member, boolean isMute, RequestHandler listener)
Mute/unmute any member in the current audio call.
| ||||||||||
| void | onAnswer(SessionDescription sdp) | ||||||||||
| void |
onIceCandidate(IceCandidate candidate)
Callback fired once local Ice candidate is generated.
| ||||||||||
| void |
onIceCandidatesRemoved(IceCandidate[] candidates)
Callback fired once local ICE candidates are removed.
| ||||||||||
| void |
onIceConnected()
Callback fired once connection is established (IceConnectionState is
CONNECTED).
| ||||||||||
| void |
onIceDisconnected()
Callback fired once connection is closed (IceConnectionState is
DISCONNECTED).
| ||||||||||
| void | onIceGatheringDone() | ||||||||||
| void |
onLocalDescription(SessionDescription sdp)
Callback fired once local SDP is created and set.
| ||||||||||
| void |
onPeerConnectionClosed()
Callback fired once peer connection is closed.
| ||||||||||
| void |
onPeerConnectionError(String description)
Callback fired once peer connection error happened.
| ||||||||||
| void |
onPeerConnectionStatsReady(RTCStatsReport report)
Callback fired once peer connection statistics is ready.
| ||||||||||
| void | setAudioRoute(AppRTCAudioManager.AudioDevice audioRoute) | ||||||||||
| void |
startRinging(RequestHandler listener)
Send a start ringing event.
| ||||||||||
| void |
stopRinging(RequestHandler listener)
Send a stop ringing event.
| ||||||||||
| void | updateRtcId(String rtcId) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.nexmo.sdk.conversation.client.audio.PeerConnectionClient.PeerConnectionEvents
| |||||||||||
From interface
com.nexmo.sdk.conversation.client.audio.RtcEvents
| |||||||||||
Disable audio calls in the current conversation.
Audio capabilities require user permissions: "android.permission.MODIFY_AUDIO_SETTINGS",
"android.permission.RECORD_AUDIO", "android.permission.INTERNET",
therefore request would fail if they are REJECTED.
The audio has to be enabled enable(AudioCallEventListener) prior to
any disable action.
| listener | Mandatory completion listener in charge of dispatching the result. |
|---|
Disable call statistics gathering.
Earmuff any member in the current audio call.
| member | The member to be ear-muffed. |
|---|---|
| isEarmuff | true or false. |
| listener | Mandatory completion listener in charge of dispatching the result. |
Earmuff self in the current audio call.
This is a convenience method, alternatively earmuff(Member, boolean, RequestHandler)
can be used to earmuff any member of the call.
enable(AudioCallEventListener) before.| isEarmuff | true or false. |
|---|---|
| listener | Mandatory completion listener in charge of dispatching the result. |
Enable Audio calls in the current conversation. Audio capabilities require user permissions: "android.permission.MODIFY_AUDIO_SETTINGS", "android.permission.RECORD_AUDIO", "android.permission.INTERNET", therefore request would fail if they are REJECTED. It is recommended to check and ask for these Permissions to be GRANTED before using any Audio feature
| listener | Mandatory completion listener in charge of dispatching the result. |
|---|
Only one audio conversation is supported at a time, so trying to enable audio simultaneously will fail with {@link NexmoAPIError#audioAlreadyInProgress()}
Enable sending call stats to the calling application. Note: We recommend a standard callback interval of 1000ms.
| statCallbackInterval | Interval for sending stats report onStatsAvailable(RTCStatsReport). |
|---|---|
| listener | Mandatory completion listener in charge of dispatching the result. |
Mute self in the current audio call.
This is a convenience method, alternatively mute(Member, boolean, RequestHandler)
can be used to mute/unmute any member of the call.
enable(AudioCallEventListener) before.| isMute | true or false |
|---|---|
| listener | Mandatory completion listener in charge of dispatching the result. |
Mute/unmute any member in the current audio call.
| member | The Member of this call to be muted/unmuted. |
|---|---|
| isMute | true or false |
| listener | Mandatory completion listener in charge of dispatching the result. |
Callback fired once local Ice candidate is generated.
Callback fired once local ICE candidates are removed.
Callback fired once connection is established (IceConnectionState is CONNECTED).
Callback fired once connection is closed (IceConnectionState is DISCONNECTED).
Callback fired once local SDP is created and set.
Callback fired once peer connection is closed.
Callback fired once peer connection error happened.
Callback fired once peer connection statistics is ready.
Send a start ringing event.
| listener | Mandatory completion listener in charge of dispatching the result. |
|---|
Send a stop ringing event.
| listener | Mandatory completion listener in charge of dispatching the result. |
|---|