Hi
First of all, thanks a lot for this awesome webrtc gateway. I have used it in multiple apps and it really saves time in developing webrtc apps.
Right now, I have developed a video calling app with it by using audio bridge API and video room api together. They are working perfectly together, the only issue I am having is on a slow internet connection and when network changes. I need to re-establish the connection but I am not sure which event should I use to initiate the reconnection request and how should I handle each.
1: Audiobridge ice state failed
2: Video room ice state failed
3: Screenshare ice state failed (another publisher)
4: Screenshare state failed for invidiual subscriber
5: Error callback in Janus.init ( here I am trying to reclaim session)
Also, these are the exact same sequence in which these events are normally called. The problem is Janus error callback is called after a long time (maybe due to reclaim_session_timeout flag) or is never called if other ice states fail and network connection is restored before Janus error callback is called.
What would be the best approach to handle reconnection in this case? Also, how should I handle slow_link events for each of these? Any tips for optimizing the overall experience of call as right now it appears to be quite slow.
Settings I am using right now:
bitrate in video rooms: 256000
Screenshare framerate: 30 ( is it optimal or should I decrease it?)
Are you using any other technique to improve webrtc connection speed with Janus gateway? Maybe by publishing audio first only and publishing video stream after audio gets connected etc.? Any help would be highly appreciated.
Thanks