为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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