发起通话
您可以调用 RongCallClient
以下接口,发起通话。
/**
* 发起音视频听话
* @param conversationType 会话类型, 如果实现的是不基于群组的voip,那次参数必须传 {@linkConversation.ConversationType#NONE}
* @param targetId 目标会话id, 如果实现的是不基于群组的voip,那此参数无意义,传null
* @param userIds 邀请参与通话的用户ID列表
* @param observerUserIds 观察者列表,无观察者可传 null;
* @param mediaType 发起的通话媒体类型
* @param extra 附加信息
* @return 呼叫id
*/
public String startCall(Conversation.ConversationType conversationType, String targetId, List<String> userIds, List<String> observerUserIds, RongCallCommon.CallMediaType mediaType, String extra);