WebRTC Calls Fail on Mobile Data Due to TURN Relay and Autoplay Issues
A developer building the Bondly calling app found that peer-to-peer voice and video worked locally but failed or went silent on laptops, mobile browsers, and an Android PWA. Connectivity problems on 4G/5G networks stem from symmetric NAT and CGNAT, which require TURN relays to carry media. A public fallback TURN host was resolving to a blackhole IP, stalling ICE checks even for laptop-to-laptop calls. Replacing it with dynamically issued TURN credentials and public STUN servers restored connectivity. Silent audio on mobile was traced to browser autoplay restrictions and to passing combined audio-video streams to audio elements, and fixed by isolating audio tracks and playing them within the user gesture.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in