|
String | getIncomingCallBroadcastAction () |
|
void | setCameraDataProcessor (EMCameraDataProcessor processor) |
|
void | setPushProvider (EMCallPushProvider provider) |
|
CallState | getCallState () |
|
EMVideoCallHelper | getVideoCallHelper () |
|
void | makeVideoCall (String username) throws EMServiceNotReadyException |
|
void | makeVideoCall (String username, String ext) throws EMServiceNotReadyException |
|
void | makeVideoCall (String username, String ext, boolean recordOnServer, boolean mergeStream) throws EMServiceNotReadyException |
|
void | makeVoiceCall (String username) throws EMServiceNotReadyException |
|
void | makeVoiceCall (String username, String ext) throws EMServiceNotReadyException |
|
void | makeVoiceCall (String username, String ext, boolean recordOnServer, boolean mergeStream) throws EMServiceNotReadyException |
|
void | addCallStateChangeListener (EMCallStateChangeListener listener) |
|
void | removeCallStateChangeListener (EMCallStateChangeListener listener) |
|
synchronized void | setSurfaceView (EMCallSurfaceView localSurface, EMCallSurfaceView oppositeSurface) |
|
void | answerCall () throws EMNoActiveCallException |
|
void | rejectCall () throws EMNoActiveCallException |
|
void | endCall () throws EMNoActiveCallException |
|
boolean | isDirectCall () |
|
void | pauseVoiceTransfer () throws HyphenateException |
|
void | resumeVoiceTransfer () throws HyphenateException |
|
void | pauseVideoTransfer () throws HyphenateException |
|
void | resumeVideoTransfer () throws HyphenateException |
|
void | muteRemoteAudio (boolean mute) |
|
void | muteRemoteVideo (boolean mute) |
|
void | setCameraFacing (int facing) throws HyphenateException |
|
synchronized void | switchCamera () |
|
int | getCameraFacing () |
|
EMCallOptions | getCallOptions () |
|
EMCallSession | getCurrentCallSession () |
|
void | inputExternalVideoData (byte[] data, int width, int height, int rotation) |
|
void | inputExternalVideoData (byte[] data, RtcConnection.FORMAT format, int width, int height, int rotation) |
|
|
static final String | IncomingCallAction = ".action.incomingcall" |
|
register call state change listener
- Parameters
-
void com.hyphenate.chat.EMCallManager.answerCall |
( |
| ) |
throws EMNoActiveCallException |
answer phone call
- Exceptions
-
void com.hyphenate.chat.EMCallManager.endCall |
( |
| ) |
throws EMNoActiveCallException |
hang up phone call
- Exceptions
-
int com.hyphenate.chat.EMCallManager.getCameraFacing |
( |
| ) |
|
get the camera currently using
- Returns
- camera int value
void com.hyphenate.chat.EMCallManager.inputExternalVideoData |
( |
byte[] |
data, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
rotation |
|
) |
| |
input video data from external data source, only support NV21 format.
- Parameters
-
void com.hyphenate.chat.EMCallManager.inputExternalVideoData |
( |
byte[] |
data, |
|
|
RtcConnection.FORMAT |
format, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
rotation |
|
) |
| |
input video data from external data source
- Parameters
-
data | |
width | |
height | |
rotation | |
boolean com.hyphenate.chat.EMCallManager.isDirectCall |
( |
| ) |
|
check if it's a P2P call with direct connection
- Returns
void com.hyphenate.chat.EMCallManager.makeVideoCall |
( |
String |
username | ) |
throws EMServiceNotReadyException |
make video call, before make video call, call setSurfaceView in Activity.onCreate firstly.
- Parameters
-
- Exceptions
-
EMServiceNotReadyException | |
void com.hyphenate.chat.EMCallManager.makeVideoCall |
( |
String |
username, |
|
|
String |
ext |
|
) |
| throws EMServiceNotReadyException |
make video call, before make video call, call setSurfaceView in Activity.onCreate first
- Parameters
-
username | callee's user id. |
ext | extension string, user can transfer self defined content |
- Exceptions
-
EMServiceNotReadyException | |
void com.hyphenate.chat.EMCallManager.makeVideoCall |
( |
String |
username, |
|
|
String |
ext, |
|
|
boolean |
recordOnServer, |
|
|
boolean |
mergeStream |
|
) |
| throws EMServiceNotReadyException |
make video call, before make video call, call setSurfaceView in Activity.onCreate first
- Parameters
-
username | callee's user id. |
ext | extension string, user can transfer self defined content |
recordOnServer | if record on server |
mergeStream | if merge stream when record on server |
- Exceptions
-
EMServiceNotReadyException | |
void com.hyphenate.chat.EMCallManager.makeVoiceCall |
( |
String |
username | ) |
throws EMServiceNotReadyException |
make video call, before make video call, call setSurfaceView in Activity.onCreate first
- Parameters
-
username | callee's user id. |
- Exceptions
-
EMServiceNotReadyException | if IM is not connected, or previous call doesn't disconnected, will throw EMServiceNotReadyException |
void com.hyphenate.chat.EMCallManager.makeVoiceCall |
( |
String |
username, |
|
|
String |
ext |
|
) |
| throws EMServiceNotReadyException |
make video call, before make video call, call setSurfaceView in Activity.onCreate first
- Parameters
-
username | callee's user id. |
ext | extension string, user can transfer self defined content |
- Exceptions
-
EMServiceNotReadyException | if IM is not connected, or previous call doesn't disconnected, will throw EMServiceNotReadyException |
void com.hyphenate.chat.EMCallManager.makeVoiceCall |
( |
String |
username, |
|
|
String |
ext, |
|
|
boolean |
recordOnServer, |
|
|
boolean |
mergeStream |
|
) |
| throws EMServiceNotReadyException |
make video call, before make video call, call setSurfaceView in Activity.onCreate first
- Parameters
-
username | callee's user id. |
ext | extension string, user can transfer self defined content |
recordOnServer | if record on server |
mergeStream | if merge the streams if record on server |
- Exceptions
-
EMServiceNotReadyException | if IM is not connected, or previous call doesn't disconnected, will throw EMServiceNotReadyException |
void com.hyphenate.chat.EMCallManager.muteRemoteAudio |
( |
boolean |
mute | ) |
|
Mute remote audio
- Parameters
-
void com.hyphenate.chat.EMCallManager.muteRemoteVideo |
( |
boolean |
mute | ) |
|
~ mute远端视频
Mute remote video
- Parameters
-
void com.hyphenate.chat.EMCallManager.pauseVideoTransfer |
( |
| ) |
throws HyphenateException |
pause real time video data transfer
void com.hyphenate.chat.EMCallManager.pauseVoiceTransfer |
( |
| ) |
throws HyphenateException |
pause real time voice data transfer
void com.hyphenate.chat.EMCallManager.rejectCall |
( |
| ) |
throws EMNoActiveCallException |
decline phone call
- Exceptions
-
remove call state change listener
- Parameters
-
void com.hyphenate.chat.EMCallManager.resumeVideoTransfer |
( |
| ) |
throws HyphenateException |
resume real time video data transfer
void com.hyphenate.chat.EMCallManager.resumeVoiceTransfer |
( |
| ) |
throws HyphenateException |
resume real time voice data transfer
Not implemented. This method will be removed in future versions.
- Parameters
-
void com.hyphenate.chat.EMCallManager.setCameraFacing |
( |
int |
facing | ) |
throws HyphenateException |
start camera capture
- Parameters
-
facing | select CameraInfo.CAMERA_FACING_BACK or CameraInfo.CAMERA_FACING_FRONT |
- Exceptions
-
HyphenateException | if cameraIndex not in CameraInfo.CAMERA_FACING_BACK, 或者CameraInfo.CAMERA_FACING_FRONT, got the exception. |
synchronized void com.hyphenate.chat.EMCallManager.setSurfaceView |
( |
EMCallSurfaceView |
localSurface, |
|
|
EMCallSurfaceView |
oppositeSurface |
|
) |
| |
Must be called when Activity.onCreate, otherwise cannot get surface size accurately
- Parameters
-
localSurface | default local SurfaceView |
oppositeSurface | default remote SurfaceView |
The documentation for this class was generated from the following file:
- hyphenatechatsdk/src/com/hyphenate/chat/EMCallManager.java