-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onSessionCloseListener not invoked in HangUp from iOS SDK #10
Comments
Basically both Web and iOS are compatible platforms and should work w/o any issues Let's try to debug and get more info re issue Please do the following:
Having this information will help us to find a root cause |
Attached logs during the call close event. |
Thanks @stepic-reply I have checked the logs and looks like my assumption was correct - I do not see any ''hangup" signals received on Web and sent from iOS. What's more interesting is iOS logs - I see there the following:
It seems you just close the chat connection at iOS side when ends a call, w/o sending a 'hangup' signal. What can be better to do on call end is to call a Cause it seems you either do not call a Please check it and let us know if you need more assistance |
Sorry, I just cut a piece of the ios logs. Attached the complete version |
if it can be useful an extract of the code that hangUp the call iOS-side: self.session?.hangUp(self.myUserInfo) |
@stepic-reply thanks for providing the complete log anyway it's the same - there is no hangup signal sent from iOS side, instead of it I see a chat disconnect log Could you provide the complete code snippet what your are doing when hangup, need to check it |
The hang up in the log should be this line: 2020-03-10 14:26:08.416 rtc::[SESS]<2206FB76-87CA-4A21-AC60-CD9A1E77F8C5, I:398335, O:[395045], T:V> Hang Up call And then: 2020-03-10 14:26:08.422369+0100 Dev App[7646:6499736] [Chat]: Doing Chat disconnect... Am I wrong? The code is basically a copy&paste from sample-videochat-swift from your samples. |
There should be a Chat hangup signal here, e.g. like this one
with but there is nothing on this matter in logs Please do 2 things:
|
Attached the code snippet for the management of all the call actions. We also found out another problem with the hangUp. Below a quick description:
|
i can also confirm --> "3.If User A drop the call before User B answer, User B doesn't receive any kind of signal to inform him that the call has been closed by the other side" is happening for me as well. |
@krisbaum74 @stepic-reply |
Hello @DaveLomber any update on this? We are reworking the app and we need to fix this specific case. |
Hey, we found that the same issue is affecting Android SDK. Do you have any feedback? @DaveLomber |
We used to use connectycube 1 version before, but now we are using 3.7.5. If a user exits the application without sending a close call. The call does not hang up. OnSessionConnectionStateChangedListener used to work but now it doesn't work. @DaveLomber |
@CMLCNL once a user is disconnected unexpectedly Do you mean it's not happening anymore after switched 1->3 SDK? |
Exactly. When i return the sdk 1. Everything its work. |
We just added this commit ConnectyCube/connectycube-web-samples@e94970e and then tested using public p2p list https://connectycube.github.io/connectycube-web-samples/videochat/dist/ the following case:
are you getting anything different? |
@DaveLomber My problem in React-Native Sdk. This listener never working on 3.7.5 or 3.7.8. Just working on first sdk. SDK 1 |
@CMLCNL thanks, noted we are using https://github.com/react-native-webrtc/react-native-webrtc/releases internally and periodically do upgrades of the lib to be up to date with WebRTC stack itself and use new features I'm not sure if it's possible or not, but you can potentially try to connect an older ver of react-native-webrtc via package.json and see what will happen Meanwhile, we will double check the listener in latest RN SDDK |
@DaveLomber Make sure I have reviewed both sdk. It works in version 1. But it definitely doesn't work in version 3. It also doesn't work in OnRejectListener in version 3. Believe me, I have been using connectycube for 1 year. |
@CMLCNL I trust your feedback , |
We are experiencing a problem with the Connectycube library, we are using it on a web app and also on a native iOS app.
When two web browser are video calling each other, ending a call on one of them is well handled and the other client receive an event on the event listener ‘onSessionCloseListener’, instead when a video call is established between a web browser and a the iOS app, we are facing some problems.
On iOS we execute the following code:
self.session?.hangUp(self.myUserInfo)
f self.videoCapture != nil{
self.videoCapture?.stopSession(nil)
}
But on the web, the event listener ‘onSessionCloseListener’ isn’t fired, causing a problem with end call handling. In order to workaround this problem we are using on the web the event listener ‘onSessionConnectionStateChangedListener’, that is called back with the state ‘DISCONNECTED’. This workaround, unfortunately, has some flaws, cause it’s fired on the web only after 5-8 seconds after the execution of the hangUp function by the iOS code.
Is this behavior a problem of the library? Or are we using it in the wrong way?
The text was updated successfully, but these errors were encountered: