hyphenate_SDK3.0 3.7.6.3
hyphenate java IM SDK
|
Classes | |
class | CallStateUnion |
class | EMACallListenerDelegate |
interface | EMCallPushProvider |
interface | EMCameraDataProcessor |
Public Member Functions | |
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 stride, int sliceHeight, int rotation) |
int | inputExternalAudioData (byte[] data, int length) |
void | setWaterMark (EMWaterMarkOption waterMark) |
void | clearWaterMark () |
Static Public Attributes | |
static final String | IncomingCallAction = ".action.incomingcall" |
Protected Member Functions | |
EMCallManager (EMClient client, EMACallManager manager) | |
void | changeState (final CallState state, final CallError callError) |
void com.hyphenate.chat.EMCallManager.addCallStateChangeListener | ( | EMCallStateChangeListener | listener | ) |
register call state change listener
listener |
void com.hyphenate.chat.EMCallManager.answerCall | ( | ) | throws EMNoActiveCallException |
answer phone call
EMNoActiveCallException |
void com.hyphenate.chat.EMCallManager.endCall | ( | ) | throws EMNoActiveCallException |
hang up phone call
EMNoActiveCallException |
int com.hyphenate.chat.EMCallManager.getCameraFacing | ( | ) |
get the camera currently using
int com.hyphenate.chat.EMCallManager.inputExternalAudioData | ( | byte[] | data, |
int | length | ||
) |
Send external custom audio data, please call after successfully joining the meeting. (the data sent is calculated as PCM byte data of 10ms. This function only supports mono channel at present.)
data | Custom audio data sent (calculated PCM byte data of 10ms) |
length | The length of custom audio data sent is the length of PCM byte required by the calculated 10ms. formula mode: length = sampleRate * 10 / 1000 * bytesPerSample * channels. sampleRate: Audio sampling rate channels:Audio channel (currently this SDK only supports mono channel) bytesPerSample = BITS_PER_SAMPLE/8(BITS_PER_SAMPLE=16 , Default audio data format is PCM 16 bit per sample.) |
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.
data | |
width | |
height | |
rotation |
Use inputExternalVideoData(byte[], RtcConnection.FORMAT, int, int, int) for instead.
void com.hyphenate.chat.EMCallManager.inputExternalVideoData | ( | byte[] | data, |
RtcConnection.FORMAT | format, | ||
int | width, | ||
int | height, | ||
int | stride, | ||
int | sliceHeight, | ||
int | rotation | ||
) |
input video data from external data source
data | |
width | |
height | |
stride,used | in NV12 format, usally same as width |
sliceHeight,used | in NV12 format, usally same as height |
rotation |
boolean com.hyphenate.chat.EMCallManager.isDirectCall | ( | ) |
check if it's a P2P call with direct connection
void com.hyphenate.chat.EMCallManager.makeVideoCall | ( | String | username | ) | throws EMServiceNotReadyException |
make video call, before make video call, call setSurfaceView in Activity.onCreate firstly.
username | callee's user id |
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
username | callee's user id. |
ext | extension string, user can transfer self defined content |
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
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 |
EMServiceNotReadyException |
void com.hyphenate.chat.EMCallManager.makeVoiceCall | ( | String | username | ) | throws EMServiceNotReadyException |
make video call, before make video call, call setSurfaceView in Activity.onCreate first
username | callee's user id. |
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
username | callee's user id. |
ext | extension string, user can transfer self defined content |
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
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 |
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
mute |
void com.hyphenate.chat.EMCallManager.muteRemoteVideo | ( | boolean | mute | ) |
~\chinese mute远端视频
Mute remote video
mute |
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
EMNoActiveCallException |
void com.hyphenate.chat.EMCallManager.removeCallStateChangeListener | ( | EMCallStateChangeListener | listener | ) |
remove call state change listener
listener |
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.setCameraDataProcessor | ( | EMCameraDataProcessor | processor | ) |
Not implemented. This method will be removed in future versions.
processor |
void com.hyphenate.chat.EMCallManager.setCameraFacing | ( | int | facing | ) | throws HyphenateException |
start camera capture
facing | select CameraInfo.CAMERA_FACING_BACK or CameraInfo.CAMERA_FACING_FRONT |
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
localSurface | default local SurfaceView |
oppositeSurface | default remote SurfaceView |