主叫方
发起通话
使用 RongCallLib
库中 RCCallClient
的发起单人或多人音视频通话。多人通话场景所有通话者必须在一个群组内。
Objective C
- (RCCallSession *)startCall:(RCConversationType)conversationType
targetId:(NSString *)targetId
to:(NSArray *)userIdList
mediaType:(RCCallMediaType)type
sessionDelegate:(id<RCCallSessionDelegate>)delegate
extra:(NSString *)extra;
-
参数说明:
参数 类型 必填 说明 conversationType RCConversationType 是 会话类型 targetId NSString 是 目标会话 ID ,单人呼叫时 targetId 为被叫端 UserID,多人呼叫时 targetId 为群组 ID userIdList NSArray 是 被叫用户 ID 列表,在此数组中仅填写被叫端 UserID,请不要填写主叫端 UserID,否则无法发起呼叫 type RCCallMediaType