Web&H5(Vue2/Vue3)

最近更新时间:2025-05-16 17:17:42

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

预期效果

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



发起多人通话

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

加入通话

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