Python WebRTC
Chrome's WebRTC engine (libwebrtc M152), with the browser API, in Python
by MarshalXFree
Domain Rating
by Ahrefs
Domain Rating by Ahrefs25
Description
Python WebRTC is a Python binding for libwebrtc, the WebRTC engine inside Chrome, exposed through the same W3C browser API. The site says that if you know WebRTC from JavaScript, you know it in Python. The binding covers peer connections, data channels, audio and video tracks, WebCodecs frames, encoded transforms and stats. The site says it binds libwebrtc M152. The quickstart and examples include an echo peer, a recorder, a browser and Python server pair, a voice chat example with OpenAI GPT-Live, a voice agent example with Gemini Live, a live stream in the terminal, and WHIP and WHEP support. The guides cover connections, data channels, events, media and H.264, and there is a page on choosing a Python WebRTC library and one on migrating from aiortc. Prebuilt wheels are provided for Linux, macOS and Windows. It is aimed at Python developers who build real-time audio and video applications, or voice agents that need a WebRTC connection. The project is on GitHub under MarshalX.…
Highlights
- Chrome's WebRTC engine with the browser API in Python
- Peer connections, data channels and media tracks
- Prebuilt wheels for Linux, macOS and Windows
- Examples including echo, recorder and WHIP and WHEP
- Voice agent examples with OpenAI and Gemini
Ratings & Reviews
No ratings yet
Be the first to rate Python WebRTC.
People also visit
Node Datachannel
WebRTC For Node.js and Electron (including WebSocket Client & Server)
Python WebRTC FAQ
What is Python WebRTC?
A Python binding for libwebrtc, the WebRTC engine in Chrome, with the same API you know from the browser.
Who is it for?
Python developers who need peer connections, data channels, audio or video in their applications.
Which platforms are supported?
The site says prebuilt wheels are available for Linux, macOS and Windows.
How does it compare to aiortc?
The site has a page on choosing a Python WebRTC library and a guide on migrating from aiortc.
Where do I start?
The site suggests the Quickstart, then the Guides and Examples, such as the echo peer and recorder examples.
What are the best Python WebRTC alternatives?
Popular alternatives to Python WebRTC include Webrtc, Ex Webrtc and Artico. See all Python WebRTC alternatives


