Helper repo for build Janus WebRTC Server on build.snapcraft.io
/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)
- 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;
sudo apt updatesudo apt install snapd- 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 --edgewill 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
- 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.