Skip to content

Akagi201/januspy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

januspy

Python client to interact with Janus Gateway.

Deps

  • Python 3, Please use pyenv and pyenv-virtualenv
  • pip install -r requirements.txt
  • For streaming you might need gstreamer installed.

Run

  • Modify configs in config.py
  • python -i janus.py

Commands

greet()

Run this first to establish a session.

attach(plugin_name)

Attach to the plugin, name is optional, cm.rtpbroadcast is default.

keepalive()

Refresh the session timeout.

list()

Run this after attach(), lists the mountpoints.

create(id)

Create a mountpoint id, default is Ababagalamaga.

destroy(id)

Destroy the mountpoint by id, default is Ababagalamaga.

stream(amin,amax,vmin,vmax)

Create streaming streams, params means maximal and minimal bitrate and can be omitted with default values.

unstream()

Stops streaming. Don't forget to do this when you stop session. It's not done automatically. Manual kill:

killall gst-launch-1.0

session()

Runs greet(), attach() and create()

About

Python client to interact with Janus Gateway.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages