Red5 · AsyncAPI Specification
Red5 Pro WebRTC Streaming Events
Version 1.0
AsyncAPI specification for the Red5 Pro WebRTC streaming event system, covering WebSocket signaling messages exchanged during publish and subscribe sessions. Red5 Pro WebRTC uses WebSocket connections for signaling SDP offers, answers, and ICE candidates between clients and the streaming server. This specification documents the message types and payloads used in the WebRTC session lifecycle.
Channels
/publish
Publisher sends signaling message to server
WebSocket channel for a publisher to establish a WebRTC session and broadcast a live stream to the Red5 Pro server. The publisher sends an SDP offer and ICE candidates; the server responds with an SDP answer and its ICE candidates.
/subscribe
Subscriber sends signaling message to server
WebSocket channel for a subscriber to establish a WebRTC session and receive a live stream from the Red5 Pro server. The subscriber sends an SDP offer and ICE candidates; the server responds with an SDP answer and its ICE candidates.
Messages
PublishRequest
Publish Stream Request
Initial request from a publisher to start a streaming session
SubscribeRequest
Subscribe Stream Request
Initial request from a subscriber to join a streaming session
SdpOffer
SDP Offer
WebRTC SDP offer from a client
SdpAnswer
SDP Answer
WebRTC SDP answer from the server
IceCandidate
ICE Candidate
ICE candidate for WebRTC peer connection establishment
StreamEvent
Stream Lifecycle Event
Server-sent event about stream state changes
Servers
wss
red5ProServer
wss://{host}:443/live/{streamName}
Red5 Pro WebRTC WebSocket signaling endpoint for live streaming. Clients connect per-stream for publish or subscribe sessions.