a Python Extension that provides bindings to WebRTC M92
Project description
Python Extension that provides bindings to WebRTC M92
Examples
•
Documentation
•
PyPI
Python WebRTC
Stop making unstandard pure implementations of WebRTC and let's use the native library!
This project tries to be like W3C specification, but there is some edits out of specification. The changes were applied to make library more Pythonic and add useful API like programmatic audio and video.
DISCLAIMER
This project under development and doesn't redy for any serious use! In the current stage it's possible to establish connection and working with audio. The project has segfaults and sigbuse in large numbers ✨
Snippet
import asyncio
import webrtc
async def main():
pc = webrtc.RTCPeerConnection()
stream = webrtc.get_user_media()
for track in stream.get_tracks():
pc.add_track(track, stream)
audio_source = webrtc.RTCAudioSource()
track = audio_source.create_track()
pc.add_track(track)
local_sdp = await pc.create_offer()
print(local_sdp.sdp)
if __name__ == '__main__':
asyncio.run(main())
Requirements
Pre-built wheels:
- Python 3.7 or higher
- Pip 21+
- And compatible platform:
Linux | macOS | Windows | |||||
---|---|---|---|---|---|---|---|
armv7l | arm64 | x64 | x64 | M1 | x64 | ||
Python | 3.7 | ❌ | ❌ | ✅ | ✅ | ❌ | ✅ |
3.8 | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | |
3.9 | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | |
3.10 | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ |
Building from sources (sdist):
- ~15 GB of free disk space
- CMake 3.14+
- GCC 7.5+
- glibc 2.18+
- ARM toolchain (ARM only)
Full building instruction will be present later
Installing
❗️ Pre-built wheels were not published on PyPi for now!
Pre-built wheel:
pip3 install --pre wrtc
Build from sources:
pip3 install --pre wrtc --no-binary wrtc
Documentation
wrtc
's documentation lives at readthedocs.io.
Getting help
You can get help in several ways:
- Report bugs, request new features by creating an issue.
- Ask questions by creation a discussion.
Contributing
Contributions of all sizes are welcome.
Special thanks to
- Authors for node-webrtc.
License
The python-webrtc
licence is BSD 3-Clause License.
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 Distributions
Hashes for wrtc-0.0.0.dev3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff6b6c35a18fd9a19cbe58fbed15c51960aa40c94f67aed55fea8d3a9ae68568 |
|
MD5 | 216e8ea27af648a6233e2df562518a55 |
|
BLAKE2b-256 | 5fbf9ec4aa0e0d559e7fcb9f6a14d65634732aaec725ea346045364295164f96 |
Hashes for wrtc-0.0.0.dev3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfdaa3e9ab8202815bc9702a7dced7007cc5541b63e0bf6b31910e518efa10bd |
|
MD5 | 5d3a3bf11e7b23ac6378c9a4f3607c55 |
|
BLAKE2b-256 | 8d364bee2550a793a43009be632717c76d747b85be534b89348ece14848d81c5 |
Hashes for wrtc-0.0.0.dev3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9939c82b3e477e0ac56c4fd51f3350b516de36141010e5b6c417fecd5e59cd9d |
|
MD5 | ca384077b1d962f75db24f8877764c60 |
|
BLAKE2b-256 | 0a61421e9a6e7796d0dd215582ce4d4421f09f243355551a234db7c62f30fc13 |
Hashes for wrtc-0.0.0.dev3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 838b5ed1241af9272fa4efad34c6f5b1df5dc98a14ff762d13a4baa95bcad70c |
|
MD5 | 2a724df996c96aa5b959bd711fab16c2 |
|
BLAKE2b-256 | 503a0a0cc2e332ed9087601966ac05d753c7c4c1fce2cb9a40026944a224b7eb |
Hashes for wrtc-0.0.0.dev3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b73973df0758f14c10deb67c87b85fbae23379d444af4642038495027ef82554 |
|
MD5 | 97631166d9448dea8876877c6ca86fa7 |
|
BLAKE2b-256 | 7fed90a35975bff63a09ceb6c75ef46b81792dddbb463002dd3d0b930acfcb84 |
Hashes for wrtc-0.0.0.dev3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6889bdbc55b788416c272af263eb2487eadabb1a505dbfcd85e0f5a4632904f3 |
|
MD5 | 6ae73ebbc6e9daab40c3429754a27dfb |
|
BLAKE2b-256 | 513e353d53d41a79f69f02fc434535582bbb166b6df4ae5d3d84e5d888130b43 |
Hashes for wrtc-0.0.0.dev3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2422fb0c53b651613ecf5f229c72abf659325e17e2ba0755347f91b77279a7e5 |
|
MD5 | 1ced98665bf16e1eeb3d805d3c895db6 |
|
BLAKE2b-256 | 859709cfd901552ffe03b18c5a362f398aa63ea057d54167a4f37d9c8cc95092 |
Hashes for wrtc-0.0.0.dev3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 259d059ee6dafcbeac47fe6a475b0c9c2625331521d7d38b96608722dbefaee2 |
|
MD5 | 1d8c56fa89cf1db2483e2a8cc4f70b44 |
|
BLAKE2b-256 | 2d48bd5b4ad52601234309e13b8a82ee895b0be7d0f03067654d0c28f2fa23b2 |
Hashes for wrtc-0.0.0.dev3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f553c8c1c91373856ae4dc6bcb594dcf3172afd811b4649ebad74a561be6575 |
|
MD5 | 74e78748da0c0b50496737d8d4b5b313 |
|
BLAKE2b-256 | a1d5d6e9de67526556a3e5934418f9f1f80d4de0a1b04fb1c1d292daec90f81b |
Hashes for wrtc-0.0.0.dev3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2f8411cf5f99a39589678faf46add8bbfc14eb927dfd1283ec0e2ff8fca3e85 |
|
MD5 | 618b355950e5ba01ba0e7a8cb66d63e2 |
|
BLAKE2b-256 | 885fb5c0c063bd5f8ce8261ccaa24ecc06de1d5a5ebbd55f9d951027c4a36bd4 |
Hashes for wrtc-0.0.0.dev3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76536b0ab0ffd8faaa44f3a21a4090ab2fd779c318bf36cf8a981f07837112fa |
|
MD5 | 820aa11756d9769d790e2cd6e585f133 |
|
BLAKE2b-256 | 810920ea76a2321c65ddd163dd152b11a18c4821bff58ab9038b6e7b8c49eb34 |
Hashes for wrtc-0.0.0.dev3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7a36e4019fcb33d6c9ed72abc63dcd8bdf5dacf261752694f740cc2b9329a8a |
|
MD5 | d2530a68fe9ccdbf239671f5528ab765 |
|
BLAKE2b-256 | c5491f59f9ff83d0235bf335edc388656948956b1c9683639456090630a088bb |
Hashes for wrtc-0.0.0.dev3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5174afc916e2d28ba05d066a64033a98a0c860f8b198eb6f64587ff8ebd96633 |
|
MD5 | 684b73fae98f7dc5a952b512e70cb1e5 |
|
BLAKE2b-256 | 170534567e37f25163572336f568c03fd2cacf76110f912110fad28a033bcfbb |
Hashes for wrtc-0.0.0.dev3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19a11eeaddf32da762c9d8ea14b349d197ad92487c670391e1e8d71173e37ddd |
|
MD5 | 2c7e27647f0a00de152b00f8a8dce005 |
|
BLAKE2b-256 | d666e3cfa1202c24885c876b2d48cad7cb9866eded699d1675235273c7c070ef |
Hashes for wrtc-0.0.0.dev3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b0f1b96067d52b259f22db403f6b9ead85ce89a761c0a4a6d90f7f3f62b078e |
|
MD5 | 0426c594922738323b110a9fc0980c21 |
|
BLAKE2b-256 | 70ff6ad6618848e335740eda7c7014203904f66e057dc9b3ad9a98219317ce3d |