Change Log
Version 0.0.1
XX.XX.2026
๐ The whole WebRTC API is bound. Every interface, every method, every dictionary: all 154 binding issues of the tracker are done, and the API goes beyond them
๐ Media processing that not every browser ships yet: MediaStreamTrackProcessor, VideoTrackGenerator and MediaStreamTrackGenerator, with the VideoFrame and AudioData of WebCodecs
๐ WebRTC Encoded Transform: the encoded frames of senders and receivers in Python with RTCRtpScriptTransform, and end-to-end encryption with SFrame
โก libwebrtc M152, pre-built wheels for Linux (x86_64 and aarch64), macOS and Windows, CPython 3.9 โ 3.15, free-threaded 3.14t and 3.15t too
๐งช The public API follows the WebIDL of the specifications and runs the original web-platform-tests
๐ Fully reworked docs website: a new theme, guides, examples and the full API reference
What is bound, by specification:
WebRTC:
RTCPeerConnection,RTCDataChannel,RTCRtpTransceiver,RTCRtpSender,RTCRtpReceiver,RTCDtlsTransport,RTCIceTransport,RTCSctpTransport,RTCDTMFSender,RTCCertificate,RTCIceCandidate,RTCSessionDescription, with every method, attribute, event and dictionaryWebRTC Extensions: standalone
RTCIceTransport, RTP header encryption, and moreWebRTC Statistics: 19 typed stats objects in
RTCStatsReportWebRTC Encoded Transform:
RTCRtpScriptTransform,RTCEncodedVideoFrame,RTCEncodedAudioFrame, and SFrame (RFC 9605)Media Capture and Streams:
MediaStream,MediaStreamTrackwith constraints, settings and capabilities, andMediaDeviceswith a synthetic camera and microphoneMediaStreamTrack Insertable Media Processing:
MediaStreamTrackProcessor,VideoTrackGenerator, andMediaStreamTrackGeneratorWebCodecs:
VideoFrameandAudioDataStreams:
ReadableStream,WritableStreamandTransformStream, with piping and async iteration
In numbers: 229 public classes, 50 enums with the string values of the specifications, 18 exceptions named after their DOMException, and the camelCase names of the specifications next to the snake_case ones.
Migrate to prebuilt libwebrtc M152, scikit-build-core and single cibuildwheel CI by @MarshalX in #191
Split wheel builds per Python version and cache libwebrtc by @MarshalX in #196
Support free-threaded Python with
cp314tandcp315twheels, add CPython 3.15 by @MarshalX in #232Implement WebRTC spec APIs and event ordering for WPT by @MarshalX in #195
Add MediaStreamTrackProcessor, track generators and WebCodecs frames by @MarshalX in #197
Align WebIDL dictionaries with the spec as typed models by @MarshalX in #212
Align the public API with the WPT WebIDL by @MarshalX in #214
Type event handlers per event, add listener management methods by @MarshalX in #215
Replace
to_asyncwithcall_native, drop its timeout by @MarshalX in #206Add the OpenAI GPT-Live voice chat example by @MarshalX in #198
Add field trials, connect the GPT-Live example with WARP, skip loopback candidates by @MarshalX
Run original web-platform-tests through a PythonMonkey shim by @MarshalX in #193
Compare the public API with the WPT WebIDL by @MarshalX in #211
Add strict clang-format and clang-tidy, fix all findings by @MarshalX in #203
Type check with Pyrefly at full strictness, fix findings by @MarshalX in #213
Fix wrapper ownership: shared_ptr lifetimes, no factory leaks or dangling observers by @MarshalX in #194
Fix the GC deadlock by releasing wrappers off libwebrtc threads by @MarshalX in #199
Fix deadlocks, leaks and crashes found by sanitizers and chaos tests by @MarshalX in #200
Fix
set_parametershanging when libwebrtc drops the callback by @MarshalX in #208Fix sender and receiver leaks by releasing handlers of ended tracks by @MarshalX in #216
Rebuild object lifetime: unreferenced connections, channels and live tracks stay alive while they have handlers or pending work, native threads never run Python, wrappers take no attributes by @MarshalX in #232
Fire
endedon remote tracks when a connection closes, keep a failedRTCIceTransportfor an ICE restart by @MarshalX in #232Fix a cancelled operation of a connection breaking the operations queued before and after it by @MarshalX
Fix the docs build with the current
sphinx-faviconby @MarshalX, closes #186