top of page

What is WebRTC?

Oct 25
8 min read

Updated: Oct 27

Browsers exchanging real-time audio and video with a supporting signalling connection.

 

WebRTC, short for Web Real-Time Communication, is a set of browser APIs and supporting protocols for exchanging live audio, video and application data. It enables experiences such as browser calls, interactive collaboration and low-delay media sessions without requiring a separate browser plug-in. It is a communications building block, rather than a complete meeting service or a guarantee of zero latency.

 

The distinction matters when a call fails. Opening the meeting page, obtaining microphone permission, finding a working network path and playing received audio are different stages. A working website does not prove that the media connection is working, and a connected media transport does not prove that the right speaker is selected.

 

What does WebRTC include?

 

The W3C WebRTC Recommendation defines the browser interfaces for exchanging media and data with a compatible endpoint. A central interface is RTCPeerConnection. Related capture APIs provide access to local media devices, subject to permissions and platform controls. Applications still supply their own user interface, accounts, room management and service behaviour.

 

For broadband diagnosis, separate three jobs: arranging the session, establishing a usable path, and delivering media that the device can render in time. They cooperate, but one successful job cannot certify the others.

 

What is WebRTC infographic explaining the mechanism, key stages and practical limits.

 

The infographic separates signalling messages from the media route. It also distinguishes a direct transport path from a TURN relay path. Those alternatives are about how traffic reaches the WebRTC endpoint; neither means that the application has no servers.

 

How a WebRTC session comes together

 

  1. The application obtains the media tracks it needs, with the user's permission where required, or prepares a data channel.

  2. Endpoints exchange a session offer and answer through the application's signalling system, describing compatible media and transport information.

  3. They gather and exchange candidate addresses and ports, including suitable local, discovered or relayed possibilities.

  4. ICE checks candidate pairs to establish which permitted paths actually work, then selects a pair for communication.

  5. The endpoints establish the required secure transports and send negotiated media or application data.

  6. Reception, buffering, decoding and rendering continue while feedback and application logic respond to changing conditions.

 

This is a conceptual sequence, not a promise that every browser performs six strictly separate, non-overlapping phases. Candidate gathering and exchange can overlap with negotiation. A later network change can require further connectivity work. An implementation's status labels describe particular parts of that process.

 

The WebRTC project's own peer-connection guide explains that the signalling component is outside WebRTC's defined signalling transport. An application might use an existing web service to exchange the necessary information. This arrangement is why a page can load and a room can open even when the eventual media path cannot be established.

 

ICE, STUN and TURN have different roles

 

ICE means Interactive Connectivity Establishment. The IETF ICE specification describes candidate gathering, pair checking and nomination. A candidate is a possible transport address, not proof that the other endpoint can reach it. Checks test that possibility under the current network conditions.

 

STUN can help an endpoint discover the address and port visible through a NAT. TURN supplies a relay address and forwards traffic through the relay when that route is used. A discovered public-facing address and a relay are different resources. STUN is not simply a smaller TURN server carrying the call's media.

 

Component

Useful question

What success does not prove

Signalling

Did the endpoints exchange the needed session information?

A media route is usable

STUN discovery

What mapped address does this server observe?

A direct path to every peer works

ICE checks

Which candidate pair works under the current policy?

Media quality will remain good

TURN relay

Can traffic use the allocated relay path?

The route has no delay or capacity limits

 

These distinctions avoid a common diagnostic trap. Seeing a STUN response does not establish that a call is using a direct route. Seeing a relay candidate does not establish that it is the selected candidate. Inspect the selected path or the service's own diagnostic evidence where it is available.

 

Direct and relayed are transport descriptions

 

A direct path still crosses routers, access networks and potentially address translators. It means the illustrated media flow does not pass through a TURN relay. It does not mean a dedicated cable connects the participants or that there are no shared network resources.

 

The current TURN specification, RFC 8656, explains why some network conditions require a relay. Relays can also be selected for policy or privacy reasons. Consequently, a relayed call is not automatically evidence of a fault, and forcing a direct path is not a general-purpose fix.

 

A relay introduces another service and route to consider. Its location, capacity and connectivity can affect the result, but an indirect route is not necessarily slower than every possible direct internet route. Measure the path actually used rather than assuming the outcome from its label.

 

Where RTP fits into WebRTC

 

WebRTC media transport uses protected RTP and its associated control mechanisms. The media format, transport route and receiver's playback decisions remain distinct. A codec compresses the content; the transport carries it; the receiver turns the available material into output.

 

Our RTP explanation follows media sequence numbers and timestamps through a worked playback example. It shows why receiving every packet can still leave a gap if some content arrives after its useful deadline.

 

A jitter buffer can absorb some variation in arrivals by delaying playback. More waiting may reduce interruptions in one set of conditions, but also delays what the listener hears. WebRTC does not remove this practical trade-off.

 

Data channels are a separate facility for application messages. Their delivery configuration can allow different ordering and reliability behaviour. Do not apply a statement about an audio playback deadline to every data-channel message, or assume that all WebRTC traffic has identical recovery rules.

 

Does WebRTC always connect people directly?

 

No. The endpoint in a WebRTC connection can be a service's media server as well as another user's device. A group-call system can use a selective forwarding unit, commonly called an SFU, to distribute media among participants. A TURN relay and an SFU perform different jobs: one forwards transport traffic along a route, while the other participates in the media system's distribution architecture.

 

For example, a browser can have a working connection to a media server while another participant's upstream is impaired. Your own access link may be healthy even though the remote participant freezes. Conversely, several remote participants deteriorating together on your screen makes a shared receiving boundary worth examining, without proving where the fault lies.

 

The service's architecture determines which connections and trust boundaries matter. Avoid inferring the whole meeting topology from the word “peer” in a browser API name.

 

Encryption and permissions protect different boundaries

 

RFC 8827, the WebRTC security architecture, requires protected media transport and secure data channels. This protects traffic between the relevant transport endpoints. Whether a service can process media, and whether an additional participant-to-participant encryption layer exists, depends on the complete service architecture. “Uses WebRTC” alone is insufficient evidence for either claim.

 

Microphone and camera permissions control access to local capture devices. They do not guarantee that the selected device is producing useful media, or that the far end will render it. A blocked permission, an unavailable camera and network loss require different next actions.

 

Use the service's documented security and diagnostic controls. Keep required workplace policies in place. Do not open unrestricted firewall access or disable encryption to make a test easier. Connection reports can also expose network addresses, session identifiers or device details, so share them only through an appropriate support channel.

 

Why WebRTC performance depends on more than download speed

 

A live session needs adequate capacity in both directions, manageable variation and delay, and capable endpoints. Upload activity, local wireless contention and device processing can affect the experience even while a separate download test reports a high rate.

 

On UK broadband, consider ISP, access network, product and location together. FTTP, FTTC, cable, fixed wireless and mobile connections have different access mechanisms, but the local WiFi and router still matter. The meeting's remote endpoint and interconnection path also remain part of the journey.

 

Compare a quiet connection with normal upload and download activity. A repeatable deterioration during load makes a load-sensitive boundary worth investigating. Our latency under load guide explains that comparison without treating headline speed as a substitute for responsiveness.

 

Different symptoms suggest different starting points. Failure before the session connects calls for negotiation, permissions and path evidence. A session that connects but deteriorates during uploads calls for a different comparison. Smooth incoming video with stuttering local screen sharing can involve a different sending workload from the camera stream.

 

Read WebRTC statistics without mixing measurements

 

The W3C statistics specification defines measurements for transports and media streams. Its published version is a Candidate Recommendation Draft, and availability varies by browser and statistic. Preserve the object identifier, direction, timestamp, units and selected path when comparing samples.

 

Candidate-pair currentRoundTripTime is a round-trip measurement based on STUN exchanges, in seconds. It is not a direct microphone-to-speaker measurement. Jitter-buffer delay is cumulative time spent by emitted audio samples or video frames in the buffer; dividing by the corresponding emitted count produces an average. Neither is a complete account of the user's perceived delay.

 

Techie Broadband calculation: use an interval, not an unexplained total

 

Imagine two snapshots of the same video reception statistics object. The cumulative jitterBufferDelay rises from 8.0 to 10.4 seconds while jitterBufferEmittedCount rises from 400 to 500 frames. These are invented values for explaining the arithmetic, not a browser benchmark or an acceptable-quality threshold.

 

Quantity

First snapshot

Second snapshot

Change

Cumulative buffer delay

8.0 s

10.4 s

2.4 s

Emitted video frames

400

500

100

 

For the frames emitted between the snapshots, the average buffer residence is 2.4 ÷ 100 = 0.024 seconds, or 24 ms. Dividing the second lifetime totals instead gives 10.4 ÷ 500 = 20.8 ms, which answers a different question: the lifetime average represented by that object.

 

The 2.4 seconds is accumulated across 100 frames. It does not mean the viewer waited an additional 2.4 seconds for each frame. Nor does a 24 ms buffer average include capture, encoding, network transit, decoding and display delay.

 

Only compute an interval ratio when the samples belong to the same continuing object and the count increased. A reset, replacement object or missing value makes the simple subtraction unsuitable. If no frames were emitted, division by a zero change cannot describe their average residence.

 

A practical UK troubleshooting sequence

 

  1. Record the application, browser version, device, affected media direction and time. State whether the failure is connection setup, missing media, interruptions or delay.

  2. Check microphone, camera and output selections, permissions and mute state. Use the application's local preview or supported device test where available.

  3. Establish whether the session connects and whether the service reports a selected direct or relay path. Treat an available candidate as different from a selected one.

  4. Repeat a comparable session over Ethernet where practical, keeping the destination and activity similar, then compare with WiFi.

  5. Compare quiet conditions with ordinary upload and download activity separately, avoiding disruption to essential work or safety services.

  6. Collect supported transport and media statistics over the affected interval. Keep units, stream identifiers, directions and counter resets visible.

  7. Change one documented application setting at a time and repeat the comparison. Keep required security protections and return unsuccessful changes to their prior state.

  8. Escalate with the event time, connection method, symptom and comparison evidence. Ask the service or network operator to examine the relevant boundary rather than presenting one counter as a complete diagnosis.

 

This sequence narrows the investigation without promising that a home user can identify every remote fault. A provider can investigate its network; the meeting service can inspect its signalling, relay or media-server systems. Useful evidence makes that division clearer.

 

Frequently asked questions

 

What does WebRTC stand for?

 

WebRTC stands for Web Real-Time Communication. It provides browser interfaces and supporting protocols for live media and application data.

 

Is WebRTC a video-call application?

 

No. It is technology used to build communication features. A complete service still supplies its interface, accounts, signalling and operational infrastructure.

 

Does WebRTC need servers?

 

Applications normally use servers for signalling and service functions. Media may also use relays or media servers, depending on the path and architecture.

 

Are STUN and TURN the same thing?

 

No. STUN supports functions such as address discovery and connectivity checks. TURN allocates a relay through which traffic can be forwarded.

 

Does a relay mean my call is faulty?

 

No. Relays can be necessary for connectivity or used for policy and privacy. Assess the actual performance and selected path rather than the label alone.

 

Does a low WebRTC RTT prove low end-to-end media delay?

 

No. RTT describes a particular round-trip measurement. Capture, encoding, buffering, decoding and rendering can add delay outside that measurement.

 

Key takeaway

 

WebRTC brings together negotiation, connectivity, secure transport and media handling. Diagnose those stages separately. The strongest explanation of a poor session combines the actual symptom, selected route, local comparisons and correctly interpreted measurements, rather than assuming that a fast speed test or a “connected” label proves the whole call is healthy.

 

Explore the Techie Broadband terminology guide for the related networking and media concepts behind real-time communication.

 
 
UK Techie Broadband Providers
bottom of page