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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file janus_recordplay_plugin-3.0.0.tar.gz.
File metadata
- Download URL: janus_recordplay_plugin-3.0.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe7c6735d28acb3c05bca5e7f1a9ffb49d9ec1d76c094f7367a4316258a8f5ce
|
|
| MD5 |
f05b9069621f5c0f6e9c1bf97a6ce608
|
|
| BLAKE2b-256 |
6451130b5408e61328176a5c53772467760e86d5ee5b3ba42539caa13f6c582a
|
File details
Details for the file janus_recordplay_plugin-3.0.0-py3-none-any.whl.
File metadata
- Download URL: janus_recordplay_plugin-3.0.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6db954f2175159cf7f1c59bb108e722ffb99f89092433b8a3420a3e3e62c4fd
|
|
| MD5 |
b23de3fb43f7e502a8301c2204a6c6f3
|
|
| BLAKE2b-256 |
6b2a26007006338e6f7ba50b99a6cec4152cebd4c130ea663735e1d076a26f1f
|