janus-gateway-snap
janus-gateway-snap copied to clipboard
Helper repo for build Janus WebRTC Server on build.snapcraft.io and launchpad.net
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
- To install Janus latest stable snap:
sudo snap install janus-gateway; - To install Janus edge snap (i.e. built from latest
master):sudo snap install janus-gateway --edge; - To view Janus log:
sudo snap logs janus-gateway; - To view Janus log and wait for new lines:
sudo snap logs janus-gateway -f; - For Janus snap restart (required after configs edit):
sudo snap restart janus-gateway; - To resolve "Too many open files" run
systemctl edit snap.janus-gateway.janus-gateway.serviceand put there something like:
[Service]
LimitNOFILE=65536
Getting Started Guide
sudo apt updatesudo apt install snapd- Use logs to check if it's running. Many options:
snap list janus-gatewaysudo snap logs janus-gatewaysudo snap logs janus-gateway -fsudo snap logs janus-gateway -n=allsudo systemctl status snap.janus-gateway.janus-gateway.service
- Use
sudo lsof -i -P -n | grep janusto check ports being listened to - Open
/var/snap/janus-gateway/common/etcto view/modify configs - Run the demos locally:
cd /snap/janus-gateway/current/opt/janus/share/janus/demos && python -m SimpleHTTPServer 8000 - Then visit http://localhost:8000 in your browser.