Video call and video conference modules, why the stun, turn request (but the error status) occurs when the network is disconnected or switched.
If it is disconnected from one wifi and then reconnected with the same wifi, the ice connection is restored to the connected state. However, if you disconnect from one wifi and reconnect to another wifi, an ERROR NETWORK CHANGED appears on the front-end page, and the call cannot be resumed.
The “network changed” error is from the HTTP long poll, not WebRTC.
- Thank you so much for your prompt reply.
If I want to solve this problem and expect video calls to still work when switching from one wifi to another, I need to modify JavaScript code (web api) HTTP long poll related parts, or modify the C code (native api)?
Thank you again, Iorenzo.
Long poll error should be temporary, it should create a new one. If now, check the janus.js
code to see why.
Thank you very much Iorenzo, maybe I’ll update the janus.js code?
I am using the janus source code that my colleague installed in the docker container earlier this year.
- Thank you again.
Dear Lorenzo,
I found that using the latest version of demo on our official website, errors still occur when switching networks.
I had two pages open simultaneously in a browser on one computer for a video call, and when I tried to switch from one WiFi to the other, a network error occurred. (This should be the same thing as when I said ERROR NETWORK CHANGED last time, except I commented out the “Lost connection to the server” prompt in the front-end code.)
Dears, can you point out my problem?