An implementation of WebRTC and ORTC
Project description
This is a fork of the aiortc project with slight modification neeeded in the crosslab project
What is aiortc?
aiortc is a library for Web Real-Time Communication (WebRTC) and Object Real-Time Communication (ORTC) in Python. It is built on top of asyncio, Python’s standard asynchronous I/O framework.
The API closely follows its Javascript counterpart while using pythonic constructs:
promises are replaced by coroutines
events are emitted using pyee.EventEmitter
To learn more about aiortc please read the documentation.
Why should I use aiortc?
The main WebRTC and ORTC implementations are either built into web browsers, or come in the form of native code. While they are extensively battle tested, their internals are complex and they do not provide Python bindings. Furthermore they are tightly coupled to a media stack, making it hard to plug in audio or video processing algorithms.
In contrast, the aiortc implementation is fairly simple and readable. As such it is a good starting point for programmers wishing to understand how WebRTC works or tinker with its internals. It is also easy to create innovative products by leveraging the extensive modules available in the Python ecosystem. For instance you can build a full server handling both signaling and data channels or apply computer vision algorithms to video frames using OpenCV.
Furthermore, a lot of effort has gone into writing an extensive test suite for the aiortc code to ensure best-in-class code quality.
Implementation status
aiortc allows you to exchange audio, video and data channels and interoperability is regularly tested against both Chrome and Firefox. Here are some of its features:
SDP generation / parsing
Interactive Connectivity Establishment, with half-trickle and mDNS support
DTLS key and certificate generation
DTLS handshake, encryption / decryption (for SCTP)
SRTP keying, encryption and decryption for RTP and RTCP
Pure Python SCTP implementation
Data Channels
Sending and receiving audio (Opus / PCMU / PCMA)
Sending and receiving video (VP8 / H.264)
Bundling audio / video / data channels
RTCP reports, including NACK / PLI to recover from packet loss
Installing
The easiest way to install aiortc is to run:
pip install aiortc
Building from source
If there are no wheels for your system or if you wish to build aiortc from source you will need a couple of libraries installed on your system:
Opus for audio encoding / decoding
LibVPX for video encoding / decoding
Linux
On Debian/Ubuntu run:
apt install libopus-dev libvpx-dev
OS X
On OS X run:
brew install opus libvpx
License
aiortc is released under the BSD license.
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
Built Distributions
Hashes for crosslab_aiortc-1.8.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95bebab465e4d9fccf28eb1f5f34c78f9859215bd2e314603c44cdf876cf8998 |
|
MD5 | bb7bf2b01c629bc5a4e49ebaf32461b9 |
|
BLAKE2b-256 | 45512dbbe0cda7d232f476f3d8a11a74245558a205ceef5315f358711b214c42 |
Hashes for crosslab_aiortc-1.8.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da0b9250a1dc37a5adf81f71353d93744cc87f5dac1a430be333a1f9119c5df0 |
|
MD5 | 1272e57ce9a8cb66b89d4b808cf3de8a |
|
BLAKE2b-256 | e52d31019d9c69c009f3c8286ecee24acb23c5c4f219ce64eb60e28a747d6818 |
Hashes for crosslab_aiortc-1.8.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8086191caeaf128f6d5c9df8f2660e308f2e99f79272fce8c61bd5090ee621cd |
|
MD5 | f063645e2ed25ce9a5e68d0f880a40e9 |
|
BLAKE2b-256 | 6a52d6b2a48af38d0c4b0d43341c376cef2b89f58420dee4d1854483060f3b0f |
Hashes for crosslab_aiortc-1.8.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1075cb8fe3958c2e2a2e5b658d9276e48470af474ae4bb3495c3611556be2aa0 |
|
MD5 | e8d04e63f746b45a3d04220b9cbe49e5 |
|
BLAKE2b-256 | ce594967a626ad9238f27928443e58cf19730fc1ef8fc567098cc4b99d78461e |
Hashes for crosslab_aiortc-1.8.0-pp310-pypy310_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3880bd4f477476f810c6b2f49c7153f5ad24c56b82ac25d24614945cd2cd47ac |
|
MD5 | 58201d064ce34807a40a5b57b8b5c784 |
|
BLAKE2b-256 | 42bf99d46ba96dea88d6f272a5bf0b41be101bd386c932ffbab63b046e2dfd16 |
Hashes for crosslab_aiortc-1.8.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbba676aa807fe0b93ae77d44fa67ec99bde8557cbf93a5d5d9397eaaaa6c582 |
|
MD5 | 8817d91cb8bfe504e207af4903cf43b4 |
|
BLAKE2b-256 | 4a5a6b16f2e27486ce9408656433aff6948bfa34c5fb1a0c8950a8446bc4db86 |
Hashes for crosslab_aiortc-1.8.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e2e00266900a0829b380337a1a0712dbdadc0bc25d70f7c368ccdd51656dd5f |
|
MD5 | 93a6aa9a72dd37b063236f5684a6052d |
|
BLAKE2b-256 | 921bc8b6180edea0a130cc6291bd3a170accff66b5e98b659c29785be24d35fd |
Hashes for crosslab_aiortc-1.8.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8140fc59ce83d713a1c8ba390912c7424ed360912eae2482f0102d21cf71bb1a |
|
MD5 | 6d70343948bdad411cf28282a94796ab |
|
BLAKE2b-256 | f956810705496567a9c19d8b5e23e54c5f8734157bff7f4a69617ad4aacf05cf |
Hashes for crosslab_aiortc-1.8.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dc07eec875979ad7186f66c01a10a8fd8417d84cd502cec6f284d0ce6807702 |
|
MD5 | a7f3ec25f1b828c4a421e4da90c692f6 |
|
BLAKE2b-256 | ad5635d08d871419f860c1a2641d9f917cc107e510bc7c781c8d13142072d9d4 |
Hashes for crosslab_aiortc-1.8.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6a16bc35182d740494a72f5a9ee4f3b27b208b01b4135684ece9ad868cc4bcb |
|
MD5 | a955b2995276251563f6f4aae19045ba |
|
BLAKE2b-256 | 11604d9d25c04ce1ad136181e5ce9ad1a5dc6940cf9e256223d29f5e4f4d422f |
Hashes for crosslab_aiortc-1.8.0-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 155923d75e4713a3392746a0677b61c3659dd375468e236ba87e26823b43e8c2 |
|
MD5 | e75675b13da4f44afad14ce0dab0991b |
|
BLAKE2b-256 | ccc0353ff6fb28a43d5ab2ce7878402fa1012fee8d6bbd5396be565b390aa98a |
Hashes for crosslab_aiortc-1.8.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fefe47802c4853c007b78b4405b70de177b0b9ac678c037b95be7037446e96a2 |
|
MD5 | 05203dc4edd4942a1d8a13e35eb35ef4 |
|
BLAKE2b-256 | 26e895b67dbfa2bc3334c5b554297f74261b1b5c8bc816a373464c8dfe6ddfe3 |
Hashes for crosslab_aiortc-1.8.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e1adc3c6935c7ac2343f6fb5f9cb59ead87bc2826ada0d3d5c4371468a9b6e7 |
|
MD5 | 762ac7f7fd45fb9f446c3f8524f223f8 |
|
BLAKE2b-256 | 8552ebc5836c5e7c51a5c37de43c85498cb78024c3fa8bd32d626dd81e5e6483 |
Hashes for crosslab_aiortc-1.8.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49a0de019ebfc15aa1ced907ed140a6e78975e42f08adf166a89452f4a4f4597 |
|
MD5 | 8bbd807d9c712416fb488ef9d42d08ef |
|
BLAKE2b-256 | 36ffdd3b757e57ee58af6eaa218d451fcd6be90db44c8511bfee49e375c7c210 |
Hashes for crosslab_aiortc-1.8.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84af4557d211beb64b82732975d9149e82e2721aa603f9454960acd178b47329 |
|
MD5 | fe9577c8bf0d4f9245b0dd7fcf3c06bf |
|
BLAKE2b-256 | d95bfa72670965ba4a1dc71d410897626cfcb08a83614b21d46e1370334f3fe5 |
Hashes for crosslab_aiortc-1.8.0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 394efc9b80dc7dbd492c27c0119d2e422d049f49d9850620251d09230e2865f2 |
|
MD5 | e41b8ce3bc55f8a2ee6e42b84fbd5b8e |
|
BLAKE2b-256 | 0c547cabefca1f371fa59ee29f3458d23bc5a21c0332934b2e5ce5eaaa859df0 |
Hashes for crosslab_aiortc-1.8.0-cp38-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef92415503ea044f6d3ab6859eeb7c29d0f0175ac5403795ebaf8e86c258eb0a |
|
MD5 | 962bfafb46f2bf60acfa6b64e2e226c7 |
|
BLAKE2b-256 | 0aec32b102df70ed8fff442d28b41d3cb2fbcad1f3f5621b53534c971a3aa2ca |
Hashes for crosslab_aiortc-1.8.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27c4a8ccc4da9acdf3f7a1649c1d3bf4df6fbda069ecacbcf725b2f660c18030 |
|
MD5 | 1ab705b297c0f325ba69b620def704bf |
|
BLAKE2b-256 | b8a216a44c2549cef0cd80524278c9fbdf096358f6651f5a52d91a6a1d16cc15 |
Hashes for crosslab_aiortc-1.8.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2bd71a925e16bcf0d1b24694baeb794daa9f4014742ff08b750da9906a0bd72 |
|
MD5 | 022e288636af8298eef25c833849c219 |
|
BLAKE2b-256 | daf5bfc1d2f8cc271c5cfff625387f3bfb05ad98ddea3d3ff7b7652b63428d18 |
Hashes for crosslab_aiortc-1.8.0-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 277d88262cd35652f30339cc4d375087f9bbfe27ae0c21d69cf1d01b3962acd5 |
|
MD5 | 5d3e6fbec7d98dadebc1c74580cbc10b |
|
BLAKE2b-256 | f5fb88a3c4e425da6a7172d209ec72f9f27c1b2b3ab81a239f1850d640339c54 |
Hashes for crosslab_aiortc-1.8.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f93f88841772a6368cb860f045c873d02aca55ee1c2bd8a65e55c0dde355b83 |
|
MD5 | eaf202ba0cd3de13b19f06b842fe451b |
|
BLAKE2b-256 | 3279c64ea2542785acc31bd13182d3037d72aec7490382c8a26f8037498864bd |
Hashes for crosslab_aiortc-1.8.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49d0b88098bf3ea6557fda9249d97ce465d0da58fcaad080e847acbeb86353ca |
|
MD5 | b32c76dfb888549a1b12d7e0127a88e3 |
|
BLAKE2b-256 | f550e5068595d584036eb556e1817257ba1da4fa806edeb0b0cfadc10a80d3f2 |