What is WebRTC? Short for Web Real-Time Communication, it is an open standard for sending live audio, video and data between devices with very little delay. It is built into major browsers such as Chrome, Firefox, Safari and Edge, and mobile apps use the same technology through libraries. It became an official W3C and IETF standard in 2021 after years of development.
The pieces of a WebRTC call
- Signaling: before a call, the two apps swap connection details and encryption fingerprints through the app's own server. WebRTC leaves this part to each app.
- ICE, STUN and TURN: methods for finding a network path through home routers and mobile networks. STUN helps a device learn its public address; TURN relays the media when a direct path is impossible.
- Codecs: compression for audio and video, such as Opus for voice and VP8, VP9, H.264 or AV1 for video.
- Encryption: WebRTC requires media to be encrypted, using DTLS-SRTP.
Peer-to-peer and group calls
In a simple one-to-one call, media can flow directly between the two devices, or through a TURN relay when networks block a direct route. Group calls are harder, because every person's video has to reach everyone else. Small groups can connect everyone to everyone, while larger services often route media through a server called an SFU, which forwards each stream to the other participants.
Why WebRTC calls sometimes lag or blur
WebRTC constantly measures your connection and adjusts quality to keep the call going. When your signal drops on a moving train or in a basement, it lowers video resolution first and protects audio, because people tolerate a blurry picture far better than broken speech. Turning off video on a weak connection usually makes the voice clearer, and moving closer to a window or switching from patchy Wi-Fi to mobile data can help too.
Is WebRTC secure?
Encryption is mandatory in WebRTC, so audio and video are always encrypted while they travel. What that encryption protects against depends on the call's design: who passes along the signaling, and whether media goes through a server that handles the keys. Apps that claim end-to-end encrypted calls usually add their own key verification or an extra encryption layer on top.
WebRTC in Foxcolab
Foxcolab's voice and video calls, one-to-one and group, are built on WebRTC and connect peer to peer; a group call is a mesh of direct connections. Call audio and video are encrypted device to device with DTLS-SRTP, as WebRTC requires, and when a relay is needed, Foxcolab's TURN servers only pass the encrypted media along and can't decode it. You start a call from a chat, including a chat opened by scanning someone's F-Number QR code, and you can still answer calls while App Lock is on.
How Foxcolab handles securityFrequently asked questions
Do I need to install anything to use WebRTC?
No. It is built into modern browsers and into the apps that use it, so you just tap the app's call button.
What is a TURN server?
A relay that forwards call media when two devices cannot connect directly, for example on strict office or mobile networks. In standard WebRTC the media it relays stays encrypted.
Are WebRTC calls end-to-end encrypted?
WebRTC always encrypts media in transit. Whether a call is truly end to end depends on how the app handles signaling and servers, so check what the app itself claims.