Web&H5&小程序

最近更新时间:2025-09-29 17:29:22

我的收藏
本文介绍多人通话功能的使用,例如发起多人通话、加入多人通话。

预期效果

TUICallKit 支持多人通话,预期效果见下图。
Web 端
移动端







发起多人通话

调用 calls API 发起群通话。
try {
const params = {
userIDList: ['user1', 'user2'],
type: TUICallType.VIDEO_CALL,
}
await TUICallKitAPI.calls(params);
} catch (error: any) {
alert(`[TUICallKit] groupCall failed. Reason:${error}`);
}

加入多人通话

调用 join API 主动加入已有的音视频通话。
try {
await TUICallKitAPI.join({callId: 'xxx'});
} catch (error: any) {
alert(`[TUICallKit] join failed. Reason: ${error}`);
}