Skip to main content

Typed AudioBridge plugin client for janus-api-core

Project description

janus-audiobridge-plugin

Typed, async bindings for the Janus AudioBridge plugin. The distribution is independent from other named Janus plugins and depends only on janus-api-core>=3,<4.

from janus_audiobridge_plugin import AudioBridgeJoinRequest, AudioBridgePlugin
from janus_api.models.base import Jsep

async with AudioBridgePlugin(session=session) as bridge:
    await bridge.join(AudioBridgeJoinRequest(room=1234))
    reply = await bridge.configure(
        jsep=Jsep(type="offer", sdp=local_offer),
    )
    answer = reply.jsep

The reverse offer/answer flow is supported without changing negotiation roles:

async with AudioBridgePlugin(session=session) as bridge:
    offered = await bridge.request_offer(room=1234)
    await bridge.answer_offer(Jsep(type="answer", sdp=local_answer))

Plain-RTP injection is represented by AudioBridgeRtpTransport(): an empty object intentionally means send-only. Supplying only one of ip and port is rejected before a malformed request reaches Janus.

All outbound models reject unknown fields and serialize only values explicitly provided by the caller. Inbound models retain unknown fields so a newer Janus server can add response metadata without breaking this client.

Protocol reference: https://janus.conf.meetecho.com/docs/audiobridge.html

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

janus_audiobridge_plugin-3.0.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

janus_audiobridge_plugin-3.0.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file janus_audiobridge_plugin-3.0.0.tar.gz.

File metadata

File hashes

Hashes for janus_audiobridge_plugin-3.0.0.tar.gz
Algorithm Hash digest
SHA256 af324aa379b4f423bd47d205dd4085b82e4b2d1a1256cd76935f99666ef45787
MD5 6009d32a57f2c29854024d992d41afe2
BLAKE2b-256 603e30aa901aeeb4896346f2223cc79af70cf6ddf68574bbdca3140b957b7a44

See more details on using hashes here.

File details

Details for the file janus_audiobridge_plugin-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for janus_audiobridge_plugin-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b8aa9fd859da272376fdf6d52ec73c105fae5898db6dbe98e31b6eddca5bbea
MD5 ee58003102b1a3ee6be1832962717274
BLAKE2b-256 81fbabfb78d07bef11d2588b38e2ab1de6d993f5b2557a4dc421eaf614dd1bc4

See more details on using hashes here.

Supported by

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