tencent cloud

uni-app (Anroid&iOS)
마지막 업데이트 시간:2025-05-27 17:57:15
uni-app (Anroid&iOS)
마지막 업데이트 시간: 2025-05-27 17:57:15
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});
}
});

문제 해결에 도움이 되었나요?
더 자세한 내용은 문의하기 또는 티켓 제출 을 통해 문의할 수 있습니다.
아니오

피드백