Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork13
a Python extension that provides bindings to WebRTC M92
License
MarshalX/python-webrtc
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation

A Python extension that provides bindings to WebRTC M92
Examples • Documentation • PyPI
Let's use the native WebRTC with strict compatibility and fully implemented stuff!
This project follows theW3C specification with some modifications and additions to make it work better with Python applications, with useful APIs like programmatic audio and video.
This project is still under development and isn't ready for any serious use. In the current stage, it's possible to establish connection and work with audio, but many interfaces and methods not implemented yet.
You can easily check status of methods and interfaces availabilityhere.
importasyncioimportwebrtcasyncdefmain():pc=webrtc.RTCPeerConnection()stream=webrtc.get_user_media()fortrackinstream.get_tracks():pc.add_track(track,stream)audio_source=webrtc.RTCAudioSource()track=audio_source.create_track()pc.add_track(track)local_sdp=awaitpc.create_offer()print(local_sdp.sdp)if__name__=='__main__':asyncio.run(main())
- Python 3.7 or higher
- pip 21 or higher
- And compatible platform:
| Linux | macOS | Windows | |||||
|---|---|---|---|---|---|---|---|
| armv7l | arm64 | x86_64 | Intel | Apple Silicon | 64bit | ||
| Python | 3.7 | N/A | N/A | ✅ | ✅ | N/A | ✅ |
| 3.8 | N/A | N/A | ✅ | ✅ | ✅ | ✅ | |
| 3.9 | N/A | N/A | ✅ | ✅ | ✅ | ✅ | |
| 3.10 | N/A | N/A | ✅ | ✅ | ✅ | ✅ | |
- ~15 GB of free disk space
- CMake 3.14 or higher
- GCC 7.5 or higher
- glibc 2.18 or higher
- ARM toolchain (ARM only)
Full building instruction will be present later
Pre-built wheel:
pip3 install --pre wrtc
Build from sources:
pip3 install --pre wrtc --no-binary wrtc
The documentation is live atreadthedocs.io.
You can get help in several ways:
- Report bugs, request new features bycreating an issue.
- Ask questions bystarting a discussion.
Contributions of any sizes are welcome.
- Authors ofnode-webrtc.
- Authors ofweb-platform-tests.
Thepython-webrtc is published under theBSD 3-Clause License.
About
a Python extension that provides bindings to WebRTC M92
Topics
Resources
License
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.