Skip to content

WebRTC

Introduction

The mms-server supports WebRTC WHIP and WHEP, enabling pushing and pulling streams via WebRTC.

Configuration

  1. Configure WebRTC in config/mms.yaml:
yaml
webrtc:
  enabled: true
  udp_port: 8878                # UDP port for WebRTC (port 3348 is used for STUN and enabled by default)
  ip: 192.168.108.211           # IP to listen on
  internal_ip: 192.168.108.211  # Used for isolated environments like Alibaba Cloud
  1. Pushing streams: You can use OBS to push streams via WHIP: Stream URL format: http://domain/app/stream.whip As shown below: OBS WHIP Push

  2. Playing (Pulling streams): You can use the standalone console of mms-server to play the stream: Console Playback

  3. RTMP to WebRTC: Refer to RTMP to WebRTC

Released under the MIT License.