sfu 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.
go get github.com/pions/webrtc/examples/sfu
jsfiddle.net You should see two buttons 'Publish a Broadcast' and 'Join a Broadcast'
Run sfu
OR run main.go
in github.com/pions/webrtc/examples/sfu
Click Publish a Broadcast
and paste the SDP into your terminal. The sfu
application will respond with an offer, paste this into the second input field. Then press Start Session
Click Join a Broadcast
and paste the SDP into your terminal. The sfu
application will respond with an offer, paste this into the second input field. Then press Start Session
You can Join the broadcast
as many times as you want. The sfu
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