Files
webrtc/examples/sfu-minimal
Sean DuBois 1202dbaa06 Migrate SDP generation to Unified Plan
This commit has breaking changes. This API change means we
can no longer support an arbitrary number of receivers. For every track
you want to receive you MUST call PeerConnection.AddTransceiver

We do now support sending an multiple audio/video feeds. You can see
this behavior via gstreamer-receive and gstreamer-send currently.

Resolves #54
2019-04-04 12:55:36 -07:00
..
2019-04-04 12:55:36 -07:00

sfu-minimal

sfu-minimal is a pion-WebRTC application that demonstrates how to broadcast a video to many peers, while only requiring the broadcaster to upload once.

This could serve as the building block to building conferencing software, and other applications where publishers are bandwidth constrained.

Instructions

Download sfu-minimal

go get github.com/pions/webrtc/examples/sfu-minimal

Open sfu-minimal example page

jsfiddle.net You should see two buttons 'Publish a Broadcast' and 'Join a Broadcast'

Run SFU Minimal

Linux/macOS

Run sfu-minimal OR run main.go in github.com/pions/webrtc/examples/sfu-minimal

Start a publisher

  • Click Publish a Broadcast
  • curl localhost:8080/sdp -d "YOUR SDP". The sfu-minimal application will respond with an offer, paste this into the second input field. Then press Start Session

Join the broadcast

  • Click Join a Broadcast
  • curl localhost:8080/sdp -d "YOUR SDP". The sfu-minimal application will respond with an offer, paste this into the second input field. Then press Start Session

You can change the listening port using -port 8011

You can Join the broadcast as many times as you want. The sfu-minimal Golang application is relaying all traffic, so your browser only has to upload once.

Congrats, you have used pion-WebRTC! Now start building something cool