Closed masihur1989 closed 4 years ago
Before calling ConnectyCube.videochat.createNewSession
you should be connected to chat
Please check the preparations section https://developers.connectycube.com/js/videocalling?id=preparations
@DaveLomber i am connected to chat.
The crash logs says otherwise..
Let's do a quick check
please do the following log before creating a call session:
console.log("IsConnected", ConnectyCube.chat.isConnected);
const session = ConnectyCube.videochat.createNewSession(calleesIds, sessionType, additionalOptions);
Since there is no activity I’m going to close the issue. Please raise a separate issue in case of any other questions.
Hi,
I am trying to convert the current RNVideoChat sample with React
useContext
. So basically i am lifting and shifting the https://github.com/ConnectyCube/connectycube-reactnative-samples/blob/master/RNVideoChat/src/components/VideoScreen/index.js to have a central context. And the code looks like thisAnd my context looks like this
The reason of this approach is to add the capability to add the listeners globally. But i am getting this error when i want to start a call.
on debugging i figured out the
ConnectyCube.videochat.createNewSession
is throwing this error as the jid object is null.WebRTCHelpers.userCurrentJid(client)
is throwing this error. I am not sure where i am missing the jid. My user is logged in as per the recommendation here.versions:
"react-native-connectycube": "^3.2.0",
"react": "16.11.0",
"react-native": "0.62.2",
Definitely i am missing something. But i cannot figure it out. It would be great if someone with much better understanding of this architecture can guide me what i am doing wrong.
Thanks