ion-sfu

module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT

README


Ion SFU

Go implementation of a WebRTC SFU

Slack Widget Build Status GoDoc Coverage Status Go Report Card


Ion-sfu is a high performance WebRTC SFU microservice implemented in Go. It can be called directly or through a gRPC or json-rpc interface.

Getting Started

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 pion/ion-sfu:v1.0.2-grpc

Interacting with the server

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

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.
examples
internal/signal
Package signal contains helpers to exchange the SDP session description between examples.
Package signal contains helpers to exchange the SDP session description between examples.
pub-from-browser
Package pub-from-browser contains an example of publishing a stream to an ion-sfu instance from the browser.
Package pub-from-browser contains an example of publishing a stream to an ion-sfu instance from the browser.
pub-from-disk
Package pub-from-disk contains an example of publishing a stream to an ion-sfu instance from a file on disk.
Package pub-from-disk contains an example of publishing a stream to an ion-sfu instance from a file on disk.
sub-to-browser
Package sub-to-browser contains an example of subscribing to a stream from an ion-sfu instance in the browser.
Package sub-to-browser contains an example of subscribing to a stream from an ion-sfu instance in the browser.
pkg
log

Jump to

Keyboard shortcuts

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