Back to guides
Streaming FLV

RTMP / HTTP-FLV Live Streaming Playback Guide

Published: Updated: Difficulty: Beginner

Live Streaming Protocol Comparison

ProtocolKey FeaturesBest For
RTMPLow latency, relies on Flash-era technologyTraditional pushing / pulling
HTTP-FLVLow latency, playable in HTML5The go-to choice for web live streaming
WebSocket-FLVEven lower latencyLatency-sensitive scenarios
HLSHigh compatibility, segment-based deliveryVideo-on-demand and mobile

How to Play

  1. Copy your live stream URL (a .flv or RTMP address).
  2. Open the RTMP video stream player.
  3. Paste the address and press play.
  4. If the stream fails to play, the tool automatically falls back to HLS.

Technical Notes

The player is built on Video.js and flv.js (open source by bilibili), decoding the stream in your browser via Media Source Extensions — no Flash plugin required.

Frequently Asked Questions (FAQ)

Why is CORS required for playback?

Browser cross-origin security policies require the streaming server to send the proper CORS headers, otherwise the stream cannot be pulled into a web page.

How high is the typical latency?

HTTP-FLV usually adds about 1–5 seconds of latency; for scenarios that demand even lower latency, consider a WebRTC solution.

References

  1. Video.js: https://videojs.com/
  2. flv.js (by bilibili): https://github.com/bilibili/flv.js

Related Reading