Back to tester
WebSocket-FLV

WebSocket-FLV Playback Testing and WSS Requirements

Understand how WS-FLV/WSS-FLV transports FLV data and why HTTPS pages require WSS.

Browser direct play
Playable
Pipeline role
WebSocket low-latency stream
Browser result
Requires WebSocket plus an MSE player

Short answer

WebSocket-FLV pushes FLV data to the browser over WebSocket. It depends on a frontend/backend contract and is not a universal standard video URL.

Where it sits in a video pipeline

It is usually used for real-time preview in controlled systems: the server ingests a source stream and sends FLV binary data over ws/wss.

How to use it in a browser project

The frontend needs WebSocket to receive binary data and a player to parse FLV. HTTPS pages must use wss:// or browser security policy will block it.

What the server has to do

The server must define message format, first packet, reconnect behavior, auth and heartbeat. A successful WebSocket connection does not guarantee parsable media.

Common development scenarios

  • Internal monitoring, private dashboards and systems that need to push state and media together.

Debugging order

  • First check whether ws/wss matches the page protocol, then whether WebSocket returns binary FLV or an error message.
  • Then inspect message boundaries, FLV header, codecs and player buffering strategy.

Recommended conversion paths

  • RTSP/RTMP -> WS-FLV for private low-latency preview.
  • For public generic playback, prefer HLS or WebRTC.

Minimum usable implementation

  • Frontend: connect to wss://, receive ArrayBuffer and pass it to a WS-FLV-capable player.
  • Backend: push FLV data reliably and return clear disconnect/auth errors.

Developer decision rule

WebSocket-FLV should be judged by its role in the delivery chain, not by the protocol name alone. Browser result: Requires WebSocket plus an MSE player. Before promising playback, confirm the source type, whether a server conversion is required, CORS and HTTPS policy, codec support and the latency target.

Related protocols