Thanks Thanraj,
I have solved the previous issue. Now I got into another issue.
I am trying to use sendbird group call but it is showing me error saying “sendinvitation function is not defined.”
I am using the following code:
const roomParams = {
roomType: SendbirdCalls.RoomType.SMALL_ROOM_FOR_VIDEO,
// customItems: JSON.parse(currentChannel.data),
};
const room = await SendbirdCalls.createRoom(roomParams);
console.log("sendbird rooms ======== ", room)
// Room has been created successfully.
const enterParams = {
videoEnabled: type == 'video' ? true : false,
audioEnabled: true
}
await room.enter(enterParams)
console.log("enterParams ======== ", room)
for(let i = 0 ; i < users.length ; i++){
if(userProfile?.data?.phone != users[i]){
const invitation = await room.sendInvitation(users[i]);
console.log("invitation ======== ", invitation)
}
}
I am getting following details when I console room after running “room.enter()”
{“_binder”: {“_jsEventEmitter”: {“eventPool”: [Object]}, “_nativeEventEmitter”: {“_nativeModule”: [Object]}, “_nativeModule”: {“NATIVE_SDK_VERSION”: “1.10.0”, “accept”: [Function promiseMethodWrapper], “addDirectCallSound”: [Function nonPromiseMethodWrapper], “addListener”: [Function nonPromiseMethodWrapper], “authenticate”: [Function promiseMethodWrapper], “createDirectCallLogListQuery”: [Function promiseMethodWrapper], “createRoom”: [Function promiseMethodWrapper], “createRoomListQuery”: [Function promiseMethodWrapper], “deauthenticate”: [Function promiseMethodWrapper], “dial”: [Function promiseMethodWrapper], “end”: [Function promiseMethodWrapper], “enter”: [Function promiseMethodWrapper], “exit”: [Function nonPromiseMethodWrapper], “fetchRoomById”: [Function promiseMethodWrapper], “getCachedRoomById”: [Function promiseMethodWrapper], “getConstants”: [Function anonymous], “getCurrentUser”: [Function promiseMethodWrapper], “getDirectCall”: [Function promiseMethodWrapper], “getOngoingCalls”: [Function promiseMethodWrapper], “handleFirebaseMessageData”: [Function nonPromiseMethodWrapper], “initialize”: [Function nonPromiseMethodWrapper], “muteMicrophone”: [Function nonPromiseMethodWrapper], “queryNext”: [Function promiseMethodWrapper], “queryRelease”: [Function nonPromiseMethodWrapper], “registerPushToken”: [Function promiseMethodWrapper], “removeDirectCallSound”: [Function nonPromiseMethodWrapper], “removeListeners”: [Function nonPromiseMethodWrapper], “selectAudioDevice”: [Function promiseMethodWrapper], “selectVideoDevice”: [Function promiseMethodWrapper], “setDirectCallDialingSoundOnWhenSilentOrVibrateMode”: [Function nonPromiseMethodWrapper], “startVideo”: [Function nonPromiseMethodWrapper], “stopVideo”: [Function nonPromiseMethodWrapper], “switchCamera”: [Function promiseMethodWrapper], “unmuteMicrophone”: [Function nonPromiseMethodWrapper], “unregisterPushToken”: [Function promiseMethodWrapper], “updateLocalVideoView”: [Function nonPromiseMethodWrapper], “updateRemoteVideoView”: [Function nonPromiseMethodWrapper]}, “_supportedNativeEvents”: [“sendbird.call.default”, “sendbird.call.direct”, “sendbird.call.group”]}, “_internalEvents”: {“add”: [Function add], “emit”: [Function emit], “pool”: []}, “_localParticipant”: null, “_participants”: [], “_props”: {“availableAudioDevices”: [], “createdAt”: 1679470663137, “createdBy”: “7976721592”, “currentAudioDevice”: null, “customItems”: {}, “localParticipant”: null, “participants”: [], “remoteParticipants”: [], “roomId”: “dca4524c-2ee7-4067-a253-ff364dd03ee6”, “state”: “OPEN”, “type”: “SMALL_ROOM_FOR_VIDEO”}, “_remoteParticipants”: [], “addListener”: [Function anonymous], “android_selectAudioDevice”: [Function anonymous], “enter”: [Function anonymous]}
Can you please help me and let me know what I need to do?
It is quiet URGENT