Skip to main content

After connecting to IM successfully, pass the other party’s userId to start a call. Request microphone and camera permissions in advance.

//start a one-to-one video call
ICallSession callSession = JIM.getInstance().getCallManager().startSingleCall(userId, CallConst.CallMediaType.VIDEO, null);

//start a one-to-one audio call
ICallSession callSession = JIM.getInstance().getCallManager().startSingleCall(userId, CallConst.CallMediaType.VOICE, null);

Pass multiple userId values to start a group call. Request microphone and camera permissions in advance.

//start a group video call
ICallSession callSession = JIM.getInstance().getCallManager().startMultiCall(userIdList, CallConst.CallMediaType.VIDEO, null);

//start a group audio call
ICallSession callSession = JIM.getInstance().getCallManager().startMultiCall(userIdList, CallConst.CallMediaType.VOICE, null);