Initiate a group call | Received Group Call Invitation | Accept Group Call Invitation |
| | |
const TUICallKit = uni.requireNativePlugin('TencentCloud-TUICallKit');const options = {groupID: 'myGroup',userIDList: ['mike', 'tom'],callMediaType: 1, // voice call(callMediaType = 1),video call(callMediaType = 2)};TUICallKit.groupCall(options, (res) => {if (res.code === 0) {console.log('groupCall success');} else {console.log(`groupCall failed, error message = ${res.msg}`);}});
const TUICallKit = uni.requireNativePlugin('TencentCloud-TUICallKit');const options = {roomID: 9898,groupID: 'myGroup',callMediaType: 1, // voice call(callMediaType = 1),video call(callMediaType = 2)};TUICallKit.joinInGroupCall(options, (res) => {if (res.code === 0) {console.log('joinInGroupCall success');} else {console.log(`joinInGroupCall failed, error message = ${res.msg}`);}});
Was this page helpful?