All Projects → aiortc → Aiortc

aiortc / Aiortc

Licence: bsd-3-clause
WebRTC and ORTC implementation for Python using asyncio

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Aiortc

rawrtc-data-channel
A standalone WebRTC and ORTC data channel implementation.
Stars: ✭ 47 (-98.26%)
Mutual labels:  webrtc, ortc, data-channel
Webrtc
Pure Go implementation of the WebRTC API
Stars: ✭ 8,399 (+210.38%)
Mutual labels:  webrtc, ortc, webrtc-libraries
foxrtc
media sdk based on webrtc
Stars: ✭ 36 (-98.67%)
Mutual labels:  webrtc, webrtc-libraries
Notes
let me know if my notes help you :D (it's a mess, I know)
Stars: ✭ 119 (-95.6%)
Mutual labels:  asyncio, webrtc
Callroulette
A WebRTC demo using Python (asyncio + aiohttp) as the backend
Stars: ✭ 104 (-96.16%)
Mutual labels:  asyncio, webrtc
Webrtc Experiment
WebRTC, WebRTC and WebRTC. Everything here is all about WebRTC!!
Stars: ✭ 10,335 (+281.93%)
Mutual labels:  webrtc, webrtc-libraries
Rtcmulticonnection
RTCMultiConnection is a WebRTC JavaScript library for peer-to-peer applications (screen sharing, audio/video conferencing, file sharing, media streaming etc.)
Stars: ✭ 2,187 (-19.18%)
Mutual labels:  webrtc, webrtc-libraries
Fooproxy
稳健高效的评分制-针对性- IP代理池 + API服务,可以自己插入采集器进行代理IP的爬取,针对你的爬虫的一个或多个目标网站分别生成有效的IP代理数据库,支持MongoDB 4.0 使用 Python3.7(Scored IP proxy pool ,customise proxy data crawler can be added anytime)
Stars: ✭ 195 (-92.79%)
Mutual labels:  asyncio
Asphalt
Asphalt application framework (core)
Stars: ✭ 198 (-92.68%)
Mutual labels:  asyncio
Bolt Python
A framework to build Slack apps using Python
Stars: ✭ 190 (-92.98%)
Mutual labels:  asyncio
Blindpad
Collaborative text editor (like Google Docs or CoderPad) with integrated semi-anonymizing voice chat intended to help reduce bias in technical communication.
Stars: ✭ 191 (-92.94%)
Mutual labels:  webrtc
Aiohttp Security
auth and permissions for aiohttp
Stars: ✭ 195 (-92.79%)
Mutual labels:  asyncio
Python Socketio
Python Socket.IO server and client
Stars: ✭ 2,655 (-1.88%)
Mutual labels:  asyncio
Twilio Video App Ios
A collaboration application built with the Twilio Video iOS SDK
Stars: ✭ 196 (-92.76%)
Mutual labels:  webrtc
Mediastreamrecorder
Cross browser audio/video/screen recording. It supports Chrome, Firefox, Opera and Microsoft Edge. It even works on Android browsers. It follows latest MediaRecorder API standards and provides similar APIs.
Stars: ✭ 2,381 (-12.01%)
Mutual labels:  webrtc
Hypercorn
Official mirror of https://gitlab.com/pgjones/hypercorn https://pgjones.gitlab.io/hypercorn/
Stars: ✭ 193 (-92.87%)
Mutual labels:  asyncio
Ascii
👾 ASCII Roulette :: ascii art video chat on the cli
Stars: ✭ 202 (-92.54%)
Mutual labels:  webrtc
Aiomisc
aiomisc - miscellaneous utils for asyncio
Stars: ✭ 200 (-92.61%)
Mutual labels:  asyncio
Ovenplayer
OvenPlayer is Open-Source HTML5 Player. OvenPlayer supports WebRTC Signaling from OvenMediaEngine for Sub-Second Latency Streaming.
Stars: ✭ 196 (-92.76%)
Mutual labels:  webrtc
Mediadevices
Go implementation of the MediaDevices API.
Stars: ✭ 197 (-92.72%)
Mutual labels:  webrtc

aiortc

rtd pypi-v pypi-pyversions pypi-l tests codecov gitter

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

Since release 0.9.28 binary wheels are available on PyPI for Linux, Mac and Windows. 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:

  • OpenSSL 1.0.2 or greater
  • FFmpeg 4.0 or greater
  • LibVPX for video encoding / decoding
  • Opus for audio encoding / decoding

Linux

On Debian/Ubuntu run:

apt install libavdevice-dev libavfilter-dev libopus-dev libvpx-dev pkg-config

pylibsrtp comes with binary wheels for most platforms, but if it needs to be built from you will also need to run:

apt install libsrtp2-dev

OS X

On OS X run:

brew install ffmpeg opus libvpx pkg-config

License

aiortc is released under the BSD license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].