WebRTC
Introduction
The mms-server
supports WebRTC WHIP and WHEP, enabling pushing and pulling streams via WebRTC.
Configuration
- 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
Pushing streams: You can use OBS to push streams via WHIP: Stream URL format:
http://domain/app/stream.whip
As shown below:Playing (Pulling streams): You can use the standalone console of
mms-server
to play the stream:RTMP to WebRTC: Refer to RTMP to WebRTC