ion-sfu

module
v1.0.23-0...-5fa816b Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: MIT

README


Ion SFU

Go implementation of a WebRTC Selective Forwarding Unit

Slack Widget Build Status GoDoc Coverage Status Go Report Card


A selective forwarding unit is a video routing service which allows webrtc sessions to scale more efficiently. This package provides a simple, flexible, high performance Go implementation of a WebRTC SFU. It can be called directly or through a gRPC or json-rpc interface.

Getting Started

Running the json-rpc server

If you have a local golang environment already setup, simply run

go build ./cmd/server/json-rpc/main.go && ./main -c config.toml

If you prefer a containerized environment, you can use the included Docker image

docker run -p 50051:50051 -p 5000-5020:5000-5020/udp pionwebrtc/ion-sfu:v1.0.6-jsonrpc

Running the grpc server

If you have a local golang environment already setup, simply run

go build ./cmd/server/grpc/main.go && ./main -c config.toml

If you prefer a containerized environment, you can use the included Docker image

docker run -p 50051:50051 -p 5000-5020:5000-5020/udp pionwebrtc/ion-sfu:v1.0.6-grpc

Interacting with the server

To get an idea of how to interact with the ion-sfu instance, check out our examples.

Processing Media

ion-sfu supports real-time processing on media streamed through the sfu using ion-avp.

For an example of recording a MediaStream to webm, checkout the save-to-webm example.

License

MIT License - see LICENSE for full text

Directories

Path Synopsis
cmd
server/grpc
Package cmd contains an entrypoint for running an ion-sfu instance.
Package cmd contains an entrypoint for running an ion-sfu instance.
server/json-rpc
Package cmd contains an entrypoint for running an ion-sfu instance.
Package cmd contains an entrypoint for running an ion-sfu instance.
pkg
log

Jump to

Keyboard shortcuts

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