Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

a Python extension that provides bindings to WebRTC M92

License

NotificationsYou must be signed in to change notification settings

MarshalX/python-webrtc

Repository files navigation

python-webrtc logo
A Python extension that provides bindings to WebRTC M92
Examples Documentation PyPI

Python WebRTC

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.

DISCLAIMER

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.

Snippet

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())

Requirements

Pre-built wheels:

  • Python 3.7 or higher
  • pip 21 or higher
  • And compatible platform:
LinuxmacOSWindows
armv7larm64x86_64IntelApple Silicon64bit
Python3.7N/AN/AN/A
3.8N/AN/A
3.9N/AN/A
3.10N/AN/A

Building from sources (sdist):

  • ~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

Installing

Pre-built wheel:

pip3 install --pre wrtc

Build from sources:

pip3 install --pre wrtc --no-binary wrtc

Documentation

The documentation is live atreadthedocs.io.

Getting help

You can get help in several ways:

Contributing

Contributions of any sizes are welcome.

Special thanks to

License

Thepython-webrtc is published under theBSD 3-Clause License.

Sponsor this project

 

Packages

 
 
 

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp