Hi,
Not sure why yet, but somehow ICE Restart is not expecting as it should be for me.
So I have implemented ICE Restart in a Janus Video room.
Let's say there are two participants A & B. A is publishing stream and seeing B as a subscriber and vice versa.
Let's say A's internet goes off for some time and comes back again / He switches from WiFi to 4g (Obviously before Janus's session timeout occurs)
Here is what I do in my current implementation.
I detect an ICE failed event and check if the internet connectivity is there.
If yes,
I send a createOffer with ICE Restart flag true for publisher A
At the same time as the documentation says, you need to send a configure request with (restart:true) for the subscriber for B, so I do that for subscriber B.
The thing is that as I am testing this, same flow happens for publisher B and subscriber as A (in another browser instance on the same computer) and hope that's normal.
I think this is what all I am doing, I expect it to work properly, but it's not working as expected for me. For debugging, I need to know the right steps before, but in this case, I don't know the proper flow as it's not properly documented.
I am also confused about duplicate offers for subscriber B as I send createOfffer(iceRestart:true) for A as well as I send configure request (restart: true for subscriber B)
Sorry, I am asking again and again. But it's not documented well, folks. I am not very clear when ICE restart is successfully complete, then I can make sure the flow happens as expected.
Appreciate your help a lot