Closed archidvignesh closed 3 years ago
@archidvignesh
1 - why you init listeners in the addSignalingManagerListener
but not as in our example?
2 - I didn't found the implementation for addSessionCallbacksListener
, you set this
there, but in your code this
is a callback but not the MainViewModel
.
please follow carefully our guides and be careful in your code
@TatankaConCube Thanks for your response. Yes I think i have to fix what you have mentioned in point number 2. I have implemented the interface and maybe I made a mistake while using this. Will try it out
As for point 1 however, the below line in itself is not called
if (!createdLocally) {
}
I am not using a separate session manager class. I am just calling it once a fragment is created just to test calls. The callback is not fired at all. Even the if statement is not called when I try adding break points. This is from connectycube official documentation that states I can call the below line as soon as the activity is ready
ConnectycubeChatService.getInstance().videoChatWebRTCSignalingManager.addSignalingManagerListener()
No activity for a long time, so closing.
So I followed the instruction in the documentation. I am building a one to one video calling app. What I have done is, as soon as the fragment is created:
Unfortunately, the callback is not being called when I try to add the signalling manager callback at step 5. I seem to have done everything right by the documentation. Here is the code outlined in steps
Step 1: Here is how the activity begins
After this activity is set, it hosts HomeFragment. Here is the code for HomeFragment. HomeFragment refers to the activity scoped view model which is MainViewModel as seen above
Here is how check if user exists call from HomeFragment works in view model
As you can see in the view model code, I am getting stuck at the function setupConnectycubeCallService(). Nothing basically happens when I try to initialize video call using connecty cube chat