|
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
- 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.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.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
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