Python client to interact with Janus Gateway.
- Python 3, Please use pyenv and pyenv-virtualenv
pip install -r requirements.txt
- For streaming you might need
gstreamer
installed.
- Modify configs in
config.py
python -i janus.py
Run this first to establish a session.
Attach to the plugin, name is optional, cm.rtpbroadcast is default.
Refresh the session timeout.
Run this after attach()
, lists the mountpoints.
Create a mountpoint id
, default is Ababagalamaga
.
Destroy the mountpoint by id
, default is Ababagalamaga
.
Create streaming streams, params means maximal and minimal bitrate and can be omitted with default values.
Stops streaming. Don't forget to do this when you stop session. It's not done automatically. Manual kill:
killall gst-launch-1.0
Runs greet()
, attach()
and create()