Skip to main content

Module server

Module server 

Source
Expand description

HTTP-server side: accept WHIP/WHEP offers from remote clients.

Mounts axum routers that publish into moq_net::origin::Producer (WHIP / server publish) and pull from moq_net::origin::Consumer (WHEP / server subscribe). The HTTP listener itself is the caller’s responsibility; the moq-cli rtc subcommand mounts these under an HTTP server.

Modules§

whep
server subscribe: WHEP server.
whip
server publish: WHIP server (RFC 9725).

Structs§

Config
Configuration shared by both server publish and server subscribe.
Response
The result of a WHIP/WHEP whip::accept / whep::accept: the SDP answer to return to the client, plus an opaque resource id for the Location header (the RFC 9725 session resource URL).
Server
Shared WebRTC media state that hands axum routers to the caller.