Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

How to fix onnegotiation handling loop when the RTCPeerConnection.restartIce() is called?

  • 1 відповідь
  • 1 має цю проблему
  • 6 переглядів
  • Остання відповідь від ARMAN KHAN

more options

I built a web application using WebRTC technology.

My case is that I browse the web site on my android phone using Chrome version 83, and then I browse the web site on my pc using firefox version 77. And the server-side code is using node.js. It works fine.

When I switch the connection on my mobile from wifi to mobile network or from the mobile network to wifi, both browsers are handling the "onnegotiation" event infinity.

However, if I browse the web site on my pc using the Chrome browser, the problem does not exist.

I am using the perfect negotiation method to establish a connection.

I have tried to rebuild the connection in socket.on("reconnect"), it does not work.

How can I fix the problem?

And my source code can be downloaded from the following URL for reference:

https://www.sendspace.com/file/y57es6

I built a web application using WebRTC technology. My case is that I browse the web site on my android phone using Chrome version 83, and then I browse the web site on my pc using firefox version 77. And the server-side code is using node.js. It works fine. When I switch the connection on my mobile from wifi to mobile network or from the mobile network to wifi, both browsers are handling the "onnegotiation" event infinity. However, if I browse the web site on my pc using the Chrome browser, the problem does not exist. I am using the perfect negotiation method to establish a connection. I have tried to rebuild the connection in socket.on("reconnect"), it does not work. How can I fix the problem? And my source code can be downloaded from the following URL for reference: https://www.sendspace.com/file/y57es6

Усі відповіді (1)

more options

hello knvbhk,

i understand your problem please visit the below link this is very helpfull to you

when i have share the link this is a developer mozilla.

(https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/restartIce)

Tell me its help

Reply back to me on reply section

thank you for asked question in Mozilla Support forum.

regards,

Arman