Closed bijuC1983 closed 3 years ago
The sample accounts for the time it needs to establish the connection before bring up the video view, but you could try launching that view after this triggers
Hello @disa6302, @unicornss
Thank you for your suggestions. I am now using the signalClientDidConnect to launch the view.
The consistency has improved and the initialisation time has decreased.
However, 2 scenarios were noticed:
@bijuC1983 ,
For the first issue, you can look into using a timeout in the starscream client to allow user to get the option to reconnect. For the second issue, I did go through the logs but did not find any errors. Can you provide the SDP offer and answer and also let us know if you see any errors in this case?
@disa6302 Thank your for your suggestions and inputs
Thanks again!
@bijuC1983 ,
I do not think I would do anything differently for the first case.
@bijuC1983 ,
I am closing this issue for now since the question is answered. Feel free to open a new issue if you reproduce the issue. Would like to minimize the scope of this ticket to the original question
`signalingClient!.connect()
As you see in the above snippet there is a delay of 2 seconds after the connect method is executed and before the sendOffer is executed inside VideoViewController init method. If this is set to 0, the WebRTC does not get connected and for values between 0 & 2 it is very inconsistent. Even with 2, one or two out of ten times it does not get connected.
What is the significance of this delay and how could this be made more consistent? This is not something specific to an individual network because these findings are from beta testing with an audience of 30+ people.
Thanks in advance.