Skip to main content

Typed async client for the Janus Record&Play plugin

Project description

janus-recordplay-plugin

Typed, independently installable bindings for janus.plugin.recordplay. This distribution depends on janus-api-core and no other named Janus plugin.

from janus_api.models.base import Jsep
from janus_recordplay_plugin import RecordPlayPlugin

media = RecordPlayPlugin(session=session)
await media.attach()

# Recording: the browser offers and Janus answers.
recording = await media.record("demo", Jsep(type="offer", sdp=offer_sdp))

# Playback: Janus offers first, then the browser answers.
preparing = await media.play(recording_id=1234)
await media.start(Jsep(type="answer", sdp=answer_sdp))

The client deliberately encodes the asymmetric JSEP state machine: record requires an offer, play rejects JSEP entirely, and start requires an answer. It also preserves Janus's synchronous/asynchronous split: list, update, and configure wait for immediate plugin data; media-state requests wait for their event.

The schemas include the current update recording and restart playback options in Janus, plus the exact hyphenated wire keys used by configure. See the official Record&Play API and recordings format.

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_recordplay_plugin-3.0.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

janus_recordplay_plugin-3.0.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for janus_recordplay_plugin-3.0.0.tar.gz
Algorithm Hash digest
SHA256 fe7c6735d28acb3c05bca5e7f1a9ffb49d9ec1d76c094f7367a4316258a8f5ce
MD5 f05b9069621f5c0f6e9c1bf97a6ce608
BLAKE2b-256 6451130b5408e61328176a5c53772467760e86d5ee5b3ba42539caa13f6c582a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for janus_recordplay_plugin-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6db954f2175159cf7f1c59bb108e722ffb99f89092433b8a3420a3e3e62c4fd
MD5 b23de3fb43f7e502a8301c2204a6c6f3
BLAKE2b-256 6b2a26007006338e6f7ba50b99a6cec4152cebd4c130ea663735e1d076a26f1f

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