Coder Social home page Coder Social logo

vincentfretin / janus-plugin-sfu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla/janus-plugin-sfu

0.0 0.0 0.0 403 KB

Janus plugin to act as a kind of SFU for game networking data.

License: Mozilla Public License 2.0

Makefile 0.50% Rust 86.31% HTML 1.93% JavaScript 11.26%

janus-plugin-sfu's Introduction

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.

janus-plugin-sfu's People

Contributors

arpu avatar brianpeiris avatar gfodor avatar mozilla-github-standards avatar mqp avatar vincentfretin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.