
Glass-to-glass latency is the time between a frame entering the camera lens and the same frame appearing on your viewer's screen. It covers every stage in between, so it's the one latency number that matches what viewers feel. Classic HLS lands near 25 seconds; WebRTC stays under one second.
TL;DR:
Updated Nov 25, 2026: removed unverifiable claims, added a worked stopwatch example and a common-mistakes list, tightened the ending.
The first "glass" is the camera lens and the second is the viewer's screen. Glass-to-glass latency is the elapsed time between the two for a single frame. It's stricter than several terms vendors use as if they meant the same thing.
End-to-end latency often means encoder output to decoder input, which leaves out camera capture and display time. Protocol latency covers only what the player logic adds on top of a packaged stream. Contribution or first-mile latency is just the hop from encoder to origin. Each one helps when you debug a single stage, but none of them is what your viewer feels. Take one HLS stream with 6-second segments: when a goal is scored, your neighbours cheer about 25 seconds before your screen shows the ball, and that gap is the glass-to-glass number.
Fora Soft's breakdown of glass-to-glass latency gives seven contributors, each with a typical range:

Add up every stage except the player buffer and you rarely pass one second, so one stage does almost all the damage. Encoder lookahead deserves a mention anyway, because it's an easy setting to leave on defaults. Lookahead lets the encoder study upcoming frames to compress better, but it must hold each of those frames before it outputs anything. A sports feed tuned for picture quality and an auction tuned for speed shouldn't share that setting, even when they run the same encoder. You can score what a faster setting costs in picture quality with VMAF.
A classic HLS player starts well behind the live edge on purpose: a client should not start on a segment less than three target durations from the end of the playlist. With 6-second segments, that's 3 x 6 s = 18 seconds of buffer before encoding, packaging and CDN time. That's why classic HLS often lands around 25 seconds, whatever your CDN's speed.
Low-latency HLS goes after this exact stage: the player holds back a few small parts instead of three full segments, using partial segments, preload hints and blocking playlist reloads, which is why it lands in the 2 to 5 second range.
The gap between about 25 seconds for classic HLS and about 0.4 seconds for WebRTC is roughly 60x, and protocol design drives almost all of it, not network conditions. A viewer on gigabit fiber watching classic HLS still waits about 25 seconds. A viewer on average Wi-Fi watching WebRTC sees the stream in well under a second.
That's why "which protocol" usually matters more than "which CDN" when latency is your goal. A faster CDN might trim a few hundred milliseconds from stage five while leaving the 18-second player buffer untouched, so compare HLS, DASH, WebRTC, RTMP and SRT by what sets each one's delay before you compare CDNs.
You don't need lab equipment for this. Use the stopwatch-in-frame method: run a millisecond stopwatch on a phone and point the camera that feeds your live stream at it. Then take one photo that shows both the phone and a monitor playing your stream of that same phone. The difference between the two times in that photo is your glass-to-glass latency. For example, a phone reading 10:00:30.0 beside a monitor reading 10:00:05.0 means 25 seconds, the 6-second-segment HLS figure from above.
The player buffer decides most of your total, so change the protocol or buffer settings before you tune anything else. On AIOZ Stream, you send video from OBS Studio or PRISM Live Studio over RTMP, using a Server URL and a Stream Key from the dashboard. Viewers watch through the HLS playback URL, the player link or the embed code that AIOZ Stream returns for each session. Stream keys and streaming sessions explain how to preconfigure one before you go live, and your first livestream walks through the first broadcast.
Here's how that path maps to the seven stages above:
Measure your own stream with the stopwatch method before you promise viewers a number. To create a session through the API, the streamings reference shows this request (keys shown as placeholders):
curl --location --request POST 'https://api.aiozstream.network/api/live_streams/key_id/streamings' \
--header 'stream-public-key: your_public_key_here' \
--header 'stream-secret-key: your_secret_key_here' \
--data-raw '{
"title": "live_streaming_title",
"save": true,
"qualities": [
{ "resolution": "360p", "type": "hls", "container_type": "mpegts" },
{ "resolution": "720p", "type": "hls", "container_type": "mpegts" }
]
}'The response includes hls_url, player_url and iframe for the session. Next step: follow the Create Livestream guide to get your Stream Key.
Is glass-to-glass latency the same as buffering?
No. Buffering is a playback interruption, when the video stops and waits for data. Glass-to-glass latency is the steady delay between something happening in front of the camera and your viewer seeing it, even when playback runs with zero stalls.
Why do different tools report different latency numbers for the same stream?
They usually measure different parts of the pipeline: a CDN dashboard might report origin-to-edge time only, while a player SDK might count from manifest fetch to first frame. Both answer a narrower question than "camera to screen."
Does a bigger player buffer always mean a worse experience?
No, because a larger buffer absorbs more network jitter before the player stalls. For content where a few extra seconds don't matter, a bigger buffer trades latency for smoother playback on purpose.
Can you get WebRTC-level latency out of HLS by shrinking segments?
Only partly, and at a cost: shorter segments shrink the buffer, but they multiply the files your CDN serves, and you still pay a full request round trip for each one. LL-HLS's partial segments and preload hints remove that round trip directly.
Is the three-segment rule a hard requirement?
No. RFC 8216 uses "SHOULD NOT," so it's a strong default rather than a must, and some players tune it down for specific use cases at the cost of part of the jitter protection it provides.
Does audio latency matter separately from video?
Yes, and it's a common blind spot, because audio and video are often encoded, packaged and buffered on slightly different paths. They can drift out of sync even when the overall number looks fine.

MPEG-DASH streams adaptive video over HTTP from an XML MPD file. See a real MPD: Periods, AdaptationSets, Representations, segment addressing and live MPDs.

What is CMAF? The ISO format that packages video as fragmented MP4 so one set of files serves HLS and DASH, with its chunks, brands and low-latency role.

CBR vs VBR vs CRF explained: what each video rate control mode holds fixed, how maxrate and bufsize cap it, our x264 test results, and which mode to use where.

A live streaming API tutorial for AIOZ Stream: create a session, push RTMP, poll real-time stats every 5 to 30 seconds, then list the saved recordings.

Restream to multiple platforms by sending one feed to a relay. Learn the bandwidth math, platform rules and how AIOZ Stream multicast forwards your RTMP stream.

MPEG-TS vs fMP4 for HLS: how 188-byte TS packets and fMP4 init segments differ, what each costs in overhead, which codecs need fMP4, and when TS still fits.