sfu-ws

command
v3.0.0-...-d426096 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 11 Imported by: 0

README

sfu-ws

sfu-ws is a many-to-many websocket based SFU. This is a more advanced version of broadcast and demonstrates the following features.

  • Trickle ICE
  • Re-negotiation
  • Basic RTCP
  • Multiple inbound/outbound tracks per PeerConnection
  • No codec restriction per call. You can have H264 and VP8 in the same conference.
  • Support for multiple browsers

We also provide a flutter client that supports the following platforms

  • Android, iOS
  • Web
  • MacOS (Windows, Linux and Fuschia in the future)

For a production application you should also explore simulcast, metrics and robust error handling.

Instructions

Download sfu-ws

This example requires you to clone the repo since it is serving static HTML.

mkdir -p $GOPATH/src/github.com/pion
cd $GOPATH/src/github.com/pion
git clone https://github.com/pion/example-webrtc-applications.git
cd webrtc/examples/sfu-ws
Run sfu-ws

Execute go run *.go

Open the Web UI

Open http://localhost:8080. This will automatically connect and send your video. Now join from other tabs and browsers!

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL