CGJU
CGJU
May 5, 2026 · 7 min read

Definition and Classification of Live Streaming Latency

Live streaming latency refers to the time difference from signal capture to playback on the viewer's side. It is typically categorized as glass-to-glass latency and end-to-end latency. Based on latency magnitude, live streaming solutions can be classified as follows:

  • Traditional live streaming: 10–30 seconds latency, e.g., standard HLS, DASH
  • Low-latency live streaming: 2–5 seconds latency, e.g., LL-HLS, Low-Latency DASH
  • Ultra-low-latency live streaming: 500ms–1 second latency, e.g., WebRTC, SRT
  • Real-time interaction: under 200ms latency, e.g., video conferencing

Different use cases have vastly different latency requirements. E-commerce live streaming needs 2–3 seconds of latency to accommodate bullet chat interaction, while sports event streaming can accept 5–10 seconds of latency. Choosing the right low-latency technology requires finding a balance between latency, cost, compatibility, and video quality.

WebRTC Technical Principles

WebRTC (Web Real-Time Communication) is a real-time communication technology initiated by Google. Originally designed for video calls between browsers, it is now widely used in low-latency live streaming scenarios.

Core Components of WebRTC

  • Media Capture: Audio and video capture via the getUserMedia API
  • Codec: Supports VP8, VP9, H.264, AV1, and other codecs
  • Transport Layer: Based on RTP/RTCP protocols, using UDP transport
  • NAT Traversal: Solves network traversal issues through STUN/TURN servers
  • Media Engine: Echo cancellation, noise reduction, jitter buffer, and other processing

WebRTC Live Streaming Architecture

WebRTC live streaming typically employs an SFU (Selective Forwarding Unit) architecture. The publisher pushes audio and video streams to an SFU server, which is responsible for forwarding the stream to each viewer. Compared to an MCU architecture, the SFU only needs to forward streams without re-encoding, resulting in lower latency and better scalability.

// WebRTC playback side sample code
const peerConnection = new RTCPeerConnection({
    iceServers: [
        { urls: 'stun:stun.l.google.com:19302' }
    ]
});

peerConnection.ontrack = (event) => {
    const video = document.getElementById('video');
    video.srcObject = event.streams[0];
};

// Receive remote SDP and answer
async function receiveOffer(offerSdp) {
    await peerConnection.setRemoteDescription(
        new RTCSessionDescription(offerSdp)
    );
    const answer = await peerConnection.createAnswer();
    await peerConnection.setLocalDescription(answer);
    return answer;
}

LL-HLS: Low-Latency HLS

LL-HLS (Low-Latency HLS) is a low-latency HLS extension introduced by Apple in 2019. By introducing partial segments and incremental playlist updates, it reduces HLS latency from the traditional 10–30 seconds down to 2–5 seconds.

Key Technologies of LL-HLS

  • Partial Segments: TS segments are further divided into smaller parts, each of which can be loaded independently
  • Playlist Preload Hints: Informs the client of the next segment address in advance via EXT-X-PRELOAD-HINT
  • Delta Updates: Returns only the changed portion of the playlist, reducing data transfer
  • Rendition Reports: Supports more precise bitrate switching through EXT-X-RENDITION-REPORT
  • HTTP/2 Push: Leverages HTTP/2 Server Push to deliver segment data ahead of time

LL-HLS Playlist Example

#EXTM3U
#EXT-X-VERSION:9
#EXT-X-TARGETDURATION:2
#EXT-X-MAP:URI="init.mp4"
#EXT-X-SERVER-CONTROL:CAN-BLOCK-RELOAD=YES,PART-HOLD-BACK=1.0,CAN-SKIP-UNTIL=12.0
#EXT-X-PART-INF:PART-TARGET=0.5
#EXT-X-MEDIA-SEQUENCE:100
#EXT-X-GAP
#EXTINF:2.0,
gap_100.mp4
#EXT-X-PROGRAM-DATE-TIME:2026-05-05T12:00:00.000Z
#EXTINF:2.0,
file101.mp4
#EXT-X-PART:URI="part102_1.mp4",DURATION=0.5,INDEPENDENT=YES
#EXT-X-PART:URI="part102_2.mp4",DURATION=0.5
#EXT-X-PART:URI="part102_3.mp4",DURATION=0.5
#EXT-X-PRELOAD-HINT:TYPE=PART,URI="part102_4.mp4",BYTERANGE-START=0

SRT Protocol

SRT (Secure Reliable Transport) is an open-source transport protocol developed by Haivision. Implemented over UDP, it combines the reliability of TCP with the low-latency characteristics of UDP, and is widely used in broadcasting and professional live streaming fields.

Core Features of SRT

  • ARQ Packet Retransmission: Automatically retransmits lost packets to ensure transmission reliability
  • Bandwidth Estimation: Monitors network status in real time and dynamically adjusts transmission rate
  • AES-128 Encryption: Built-in encryption to protect content security
  • Multiplexing: Supports transmitting multiple streams over a single connection
  • Low-Latency Mode: Configurable latency buffer to balance latency and stability

Latency Data Comparison

Below is a comparison of the latency performance of these three technologies under typical configurations:

  • WebRTC: End-to-end latency 300ms – 1 second, suitable for real-time interactive scenarios
  • SRT: End-to-end latency 500ms – 2 seconds, suitable for professional live streaming and contribution source transmission
  • LL-HLS: End-to-end latency 2 – 5 seconds, suitable for large-scale viewer distribution

Compatibility Comparison

Browser Compatibility

  • WebRTC: Fully supported by Chrome, Firefox, Safari, and Edge — the best compatibility
  • LL-HLS: Natively supported by Safari; Chrome/Firefox/Edge require hls.js support
  • SRT: No native browser support; requires WebAssembly or gateway conversion

Device Compatibility

  • WebRTC: Natively supported on iOS/Android; poor support on smart TVs
  • LL-HLS: Natively supported on iOS/macOS; average compatibility on Android
  • SRT: Good support on professional equipment; limited support on consumer devices

Use Case Analysis

WebRTC Use Cases

  • Interactive live streaming: co-hosting, PK battles, e-commerce live streaming
  • Real-time surveillance: security cameras, telemedicine
  • Online education: small-class courses, interactive classrooms
  • Cloud gaming: game streaming, cloud desktops

LL-HLS Use Cases

  • Large-scale live streaming: concerts, sports events
  • E-commerce live streaming: product showcases, bullet chat interaction
  • News live streaming: on-site reporting, press conferences
  • CDN distribution: leveraging existing HTTP infrastructure

SRT Use Cases

  • Contribution source transmission: signal return from venue to studio
  • WAN transmission: cross-regional signal transmission
  • Poor network conditions: mobile networks, satellite links
  • Broadcasting production: professional live streaming production workflows

Selection Recommendations

When choosing a low-latency live streaming technology, consider the following dimensions comprehensively:

1. Latency Requirements

If you need ultra-low latency under 1 second, WebRTC is the top choice. If you can accept 2–5 seconds of latency, LL-HLS offers advantages in compatibility and distribution cost.

2. Audience Scale

WebRTC's SFU architecture has limited capacity per server (typically 1,000–5,000 concurrent users), and large-scale distribution requires cascading or CDN integration. LL-HLS, based on HTTP, can fully leverage existing CDN infrastructure and easily support millions of concurrent viewers.

3. Development Cost

WebRTC has a complex technology stack, requiring handling of signaling, NAT traversal, packet loss recovery, and other issues — resulting in higher development and maintenance costs. LL-HLS, as an extension of standard HLS, is relatively simpler to develop and has a more mature ecosystem.

4. Hybrid Solutions

In many scenarios, the optimal approach combines multiple technologies, for example:

  • Publishers use SRT to transmit to the server, ensuring streaming stability
  • After server-side transcoding, output both WebRTC and LL-HLS
  • Interactive viewers use WebRTC for low latency, while regular viewers use LL-HLS for smooth playback
  • Recording and timeshifting use standard HLS

Summary

Each low-latency live streaming technology has its strengths and weaknesses — there is no silver bullet. WebRTC performs best in terms of latency but has high distribution costs; LL-HLS offers good compatibility and easy distribution but relatively higher latency; SRT has advantages in professional transmission but limited end-device support.

In practice, your choice should be based on business scenarios, latency requirements, audience scale, and your technical team's capabilities. For most consumer-facing live streaming applications, LL-HLS is a balanced choice; for strongly interactive scenarios, WebRTC is essential; and in professional live streaming and signal transmission, SRT is the best companion.

If you want to quickly experience HLS playback, you can use our M3U8 Online Player to play HLS video streams directly in your browser without writing any code.

Related Recommendations

More great articles and useful tools

Want to Try Streaming Media Playback Now?

Use our free M3U8 Online Player — no coding required, play HLS video streams directly in your browser

Try It Now ➡