Code Monkey home page Code Monkey logo

tiny-webrtc-gw's Introduction

webRTC videoconference-in-a-box (C monolith)

tiny-webrtc-gw: a webRTC conferencing server "monolith" written in C/C++

Welcome to the tiny-webrtc-gw readme!

Goals

  • Infinite ⌚ duration streams (security πŸ“Ή friendly)
  • private rooms
  • 1-click-join links
  • VP8,VP9,H.264
  • very fast stream multiplexing via lightweight C
  • NO cloud or external STUN/TURN involved ergo: raspberry-pi + airgapped LAN
  • SD/HD bitrates
  • High-performance: ~68Mbit/sec per stream+thread on an 800Mhz ARM7
  • friendly chatroom-style UX (e.g. justin.tv)

Features

  • Very low latency 1-many streaming
  • HD stream (via media constraints) support
  • text chat room
  • highly scalable (native c/c++ code)
  • end-to-end encrypted
  • chrome/firefox/opera/safari (iOS) support
  • easy compilation (just git checkout --recursive and "make all")
  • select media devices
  • code includes submodule referencing the standalone HTTPS server + example certificate
  • Works directly with OBS via WHIP

Demo:

πŸ“·chat lobby on a raspi4;

Pics:

☁"cloud"☁ Web interface + lobby + chat

Caveats:

since browsers won't allow webRTC to be negotiated unencrypted (https) you will need to run an SSL frontend in front of the built-in http server (see config.txt for that port) lots of better built-ins exist but I use a tool I wrote as a proxy [https://github.com/justinb01981/SSLTools] (maybe just use a (free) self-signed certificate generated by openssl(2) for now and import it into the conferencee's browser/OS certificate trust-store)

Building:

building requires 'go' to compile boringssl (so install those packages) from the base directory just run 'make all'.

Etc:

  • 8/15 - NO host setup necessary (beyond making ports accessible) - this is possible with the new stun_client.c code - but in airgapped networks config.txt is the way to go.
  • 9/14 - OBS-direct (no browser) streaming support coming - see https://webrtchacks.com/webrtc-cracks-the-whip-on-obs/
  • constructing a share URL:
<your_https_prefix>/content/index_broadcast.html?joinroom=<roomname>&camera=0

--- e.g. https://tinyurl.com/jbhatestypingthis

(drops a user in "lobby" with camera disabled)

tiny-webrtc-gw's People

Contributors

justinb01981 avatar trellixvulnteam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tiny-webrtc-gw's Issues

Project status

Hi, I was wondering if you are still working on this project and if you plan on any future development? I'm thinking about using it for a node.js module because I like your coding style but I'd rather not commit my time if not going anywhere. Thanks!

error

Got this at the end of compiling:

/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lrt
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make: *** [Makefile:12: all] Error 1

I'm on Centos 8. Any dependencies?

Websocket related files are missing

Hi,

while compiling the code getting an error of missing file of the websocket related. I have posted the errors below.

gcc: error: config.c: No such file or directory
gcc: error: ws/cwebsocket/lib/*.c: No such file or directory

thanks.

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.