Need sequence for ICE Restart flow for Videoroom with 2 participants

209 views
Skip to first unread message

Anil Wadghule

unread,
May 30, 2018, 4:15:04 AM5/30/18
to meetecho-janus
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

Thank you,
Anil

Lorenzo Miniero

unread,
May 30, 2018, 4:26:39 AM5/30/18
to meetecho-janus
Are you kidding me? I've explained this three times already in other posts. Sorry, I'm not going to go through the same thing once more.

L.

Anil Wadghule

unread,
May 30, 2018, 7:30:15 AM5/30/18
to Lorenzo Miniero, meetecho-janus
Hi Lorenzo,

I think somehow it’s not working though you explained very neatly.

I think I need to create a environment-less demo example. I will try to create it and publish it on GitHub.. so we can trace the flaw in application logic if may be.

Thank you,
Anil


--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages