startMultiCall

public static void startMultiCall(Context context, ConversationType conversationType, String targetId, RongCallKit.CallMediaType mediaType, ArrayList<String> userIds)

发起多人通话

Parameters

context

上下文

conversationType

会话类型

targetId

目标会话 id ,单人通话为对方 UserId ,群组通话为 GroupId ,如果实现的是不基于群组的通话,那此参数无意义,传 null 即可

mediaType

会话媒体类型

userIds

参与者 id 列表


public static RongCallKit.ICallUsersProvider startMultiCall(Context context, ConversationType conversationType, String targetId, RongCallKit.CallMediaType mediaType)

开始多人通话。 返回当前会话用户列表提供者对象,用户拿到该对象后,异步从服务器取出当前会话用户列表后, 调用提供者中的 onGotUserList 方法,填充 ArrayListuserIds 后,就会自动发起多人通话。

Return

返回当前会话用户列表提供者对象

Parameters

context

上下文

conversationType

会话类型

targetId

目标会话 id ,单人通话为对方 UserId ,群组通话为 GroupId ,如果实现的是不基于群组的通话,那此参数无意义,传 null 即可

mediaType

通话的媒体类型:CALL_MEDIA_TYPE_AUDIO, CALL_MEDIA_TYPE_VIDEO


public static void startMultiCall(Context context, ArrayList<String> userIds, ArrayList<String> oberverIds, RongCallKit.CallMediaType mediaType)

发起的多人通话,不依赖群、讨论组等

Parameters

context
userIds

邀请的成员

oberverIds

邀请的以观察者身份加入房间的成员

mediaType

public static void startMultiCall(Context context, ArrayList<String> userIds, RongCallKit.CallMediaType mediaType)

发起的多人通话,不依赖群、讨论组等

如何实现不基于于群组的voip

Return

Parameters

context
mediaType