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… (meer info)
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