Giter Club home page Giter Club logo

janus-gateway-snap's Introduction

Get it from the Snap Store

janus-gateway-snap

Helper repo for build Janus WebRTC Server on build.snapcraft.io

Directories mappings

  • /opt/janus/lib/janus -> $SNAP/opt/janus/lib/janus
  • /opt/janus/share/janus/streams-> $SNAP/opt/janus/share/janus/streams
  • /opt/janus/etc/janus -> $SNAP_COMMON/etc
  • /opt/janus/share/janus/recordings -> $SNAP_COMMON/share/recordings
  • /opt/janus/share/janus/demos/voicemail -> $SNAP_COMMON/share/voicemail

So you can find:

  • Configs in /var/snap/janus-gateway/common/etc (i.e. $SNAP_COMMON/etc)
  • Recordings in /var/snap/janus-gateway/common/share/recordings (i.e. $SNAP_COMMON/share/recordings)
  • Voicemail in /var/snap/janus-gateway/common/share/voicemail (i.e. $SNAP_COMMON/share/voicemail)

Some hints

  • Install Janus latest stable snap: sudo snap install janus-gateway;
  • Install Janus edge snap (i.e. built from latest master): sudo snap install janus-gateway --edge;
  • View Janus log: sudo snap logs janus-gateway;
  • View Janus log and wait for new lines: sudo snap logs janus-gateway -f;
  • Janus snap restart (required after configs edit): sudo snap restart janus-gateway;

Getting Started Guide

  1. sudo apt update
  2. sudo apt install snapd
  3. Do you need data channel support?
  • Y: stable doesn't have it. See this discussion. If you can deal with daily restarts (e.g., just local testing), then sudo snap install janus-gateway --edge will have it. For prod environments, either switch it to dev mode to stop updates, or create your own snap.
  • N: sudo snap install janus-gateway
  1. Use logs to check if it's running. Many options:
  • snap list janus-gateway
  • sudo snap logs janus-gateway
  • sudo snap logs janus-gateway -f
  • sudo snap logs janus-gateway -n=all
  • sudo systemctl status snap.janus-gateway.janus-gateway.service
  1. Use sudo lsof -i -P -n | grep janus to check ports being listened to
  2. Open /var/snap/janus-gateway/common/etc to view/modify configs
  3. Run the demos locally: cd /snap/janus-gateway/current/opt/janus/share/janus/demos && python -m SimpleHTTPServer 8000
  4. Then visit http://localhost:8000 in your browser.

janus-gateway-snap's People

Contributors

rsatom avatar kylebakerio 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.