4. sfu
Features
- High performance
- Two-PC design
- Single-Port mode
- Unified plan semantics
- Audio/Video/Datachannel forwarding
- BWE(TWCC, REMB, RR/SR)
- ARQ(PLI, NACK)
- Simulcast
☕️How to use
- source
- docker
1. run nats
./scripts/deps start nats-server
2. build sfu
go build -o bin/sfu cmd/sfu/main.go
3. run sfu
bin/sfu -c configs/sfu.toml
or
./scripts/service start sfu
4. stop sfu
./scripts/service stop sfu
1. run nats
docker pull nats
docker run -p 4222:4222 -p 6222:6222 -p 8222:8222 nats
check nats and redis is running
lsof -i:4222
2. build sfu
docker build -f ./docker/sfu.Dockerfile -t pionwebrtc/ion:latest-sfu .
3. run sfu
docker run -p 5000:5000/udp --network host -v $PWD/configs/sfu.toml:/configs/sfu.toml pionwebrtc/ion:latest-sfu