GroupCall

This article introduces the use of the group call feature, such as initiating a group call and joining a group call.

Expected outcome

TUICallKit supports group calls. The expected outcome is shown in the figure below.
Web
Mobile Client







Initiate a Multiplayer Call

Initiate a group call by calling the groupCall API.
try {
const params = {
userIDList: ['user1', 'user2'],
type: TUICallType.VIDEO_CALL,
}
await TUICallKitServer.calls(params);
} catch (error: any) {
console.error(`[TUICallKit] calls failed. Reason:${error}`);
}

Join a group call

Join an existing audio and video call in the group by calling the join API.
try {
const params = {
callId: 'xxx'
};
await TUICallKitServer.join(params);
} catch (error: any) {
console.error(`[TUICallKit] join failed. Reason: ${error}`);
}