Skip to main content

janus-gateway python client

Project description

pyjanus

janus-gateway python client

Usage

from pyjanus import Client
from pyjanus.plugins.videoroom import ListparticipantsRequest

client = Client('wss://janus.conf.meetecho.com/ws')
await client.connect()

session = await client.create_session(keepalive_timeout=9)
handle = await session.attach("janus.plugin.videoroom")

# send request
tr = await handle.send({"request": "list"})
response = await tr.response

# send request use plugin model
tr = await handle.send(ListparticipantsRequest(room=1234).dict(exclude_none=True))
response = await tr.response

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyjanus-0.1.0.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

pyjanus-0.1.0-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page