uni-app (Anroid&iOS)
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.
Initiate a group call | Received Group Call Invitation | Accept Group Call Invitation |
![]() | ![]() | ![]() |
Group call
Initiate a group call
Launch a group call using the calls API.
const TUICallKit = uni.requireNativePlugin('TencentCloud-TUICallKit');const options = {userIDList: ['mike', 'tom'],callMediaType: 1, // voice call(callMediaType = 1)、video call(callMediaType = 2)};TUICallKit.calls(options, (res) => {if (res.code === 0) {console.log('call success');} else {console.log(call failed
,
error message
=
$
{
res
.
msg
}
);}});
Join a group call
Actively join an existing audio and video call in the group by calling the join API.
const TUICallKit = uni.requireNativePlugin('TencentCloud-TUICallKit');const options = {callId: 'xxx',};TUICallKit.join(options, (res) => {if (res.code === 0) {console.log('join success');} else {console.log(join failed
,
error message
=
$
{
res
.
msg
}
);}});