Back to Mediamtx

WebRTC servers

docs/3-publish/04-webrtc-servers.md

1.18.1739 B
Original Source

WebRTC servers

supported codecs
videoAV1, VP9, VP8, H265, H264
audioOpus, G722, G711 (PCMA, PCMU)

In order to ingest a WebRTC stream from a remote server, add the corresponding WHEP URL into the source parameter of a path:

yml
paths:
  proxied:
    # url of the source stream, in the format whep://host:port/path (HTTP) or wheps:// (HTTPS)
    source: wheps://host:port/path

If the remote server is a MediaMTX instance, remember to add a /whep suffix after the stream name, since in MediaMTX it's part of the WHEP URL:

yml
paths:
  proxied:
    source: whep://host:port/mystream/whep