Janus plugin to act as a kind of SFU for game networking data.
Перейти к файлу
dependabot[bot] 14f70de185
Bump regex from 1.4.3 to 1.5.6
Bumps [regex](https://github.com/rust-lang/regex) from 1.4.3 to 1.5.6.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.4.3...1.5.6)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 21:12:13 +00:00
.github/workflows switch back to testing master branch 2021-07-10 10:12:29 +02:00
client Support sending data between clients over signalling transport 2018-09-13 16:26:01 -07:00
docs Support sending data between clients over signalling transport 2018-09-13 16:26:01 -07:00
src reformat files with cargo fmt 2021-07-10 09:28:55 +02:00
.gitignore Remove outdated squawkers stuff 2018-06-21 17:16:44 -07:00
CODE_OF_CONDUCT.md Clean up CoC 2019-04-01 12:45:46 -07:00
Cargo.lock Bump regex from 1.4.3 to 1.5.6 2022-06-06 21:12:13 +00:00
Cargo.toml Upgrade JWT library 2021-02-15 21:37:10 -08:00
LICENSE Add MPL 2017-10-07 03:08:17 -07:00
Makefile Don't recompile in make release 2018-05-29 15:38:27 -07:00
README.md switch back to original networked-aframe and reference the adapters table there 2021-03-21 10:54:44 +01:00
janus.plugin.sfu.cfg.example Set configurable message_threads 2020-04-04 19:26:15 +00:00
rustfmt.toml Slightly less greatly rustfmt some things 2019-12-10 16:29:16 -08:00

README.md

janus-plugin-sfu

Janus plugin to serve as a WebRTC Selective Forwarding Unit (SFU) for game networking data. It was designed as the backend for Mozilla Hubs, although Hubs no longer uses it.

See here for API documentation on how to communicate with the plugin.

PRs and GitHub issues are welcome.

How do I use this?

This is a plugin for Janus, so you'll need to install and run Janus first. The installation instructions on GitHub are canonical. It's compatible with Janus version 0.10.9 and later, although sometimes Janus makes changes that break plugins.

This plugin should be compatible with any OS that can run Janus; that includes Linux, OS X, and Windows via WSL. If you use a version from a package manager, you might want to check to make sure it has data channel support, which is a compile-time option. (Debian and Ubuntu have it.)

Dependencies

These are the native dependencies necessary for building the Rust plugin. For Janus's dependencies, consult its documentation.

$ sudo apt install libglib2.0-dev libjansson-dev

Building

$ cargo build [--release]

Testing

$ cargo test

Installing

Install the library output by the build process (e.g. ./target/release/libjanus_plugin_sfu.so) into the Janus plugins directory (e.g. /usr/lib/janus/plugins). Restart Janus to activate.

Configuration and usage

The plugin accepts a configuration file in the Janus configuration directory named janus.plugin.sfu.cfg containing key/value pairs in INI format. An example configuration file is provided as janus.plugin.sfu.cfg.example.

You can test your install by pointing a browser at the tiny.html client provided in the client directory. If you open two browser windows, you should be able to share your microphone, share your screen, and send data channel messages in one, and see the results in the other.

Using it with networked-aframe

You can use this plugin with A-Frame and networked-aframe. Look at the adapters table for a maintained version of the naf-janus-adapter.