Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jlaine
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
Show HN: Aioquic – A QUIC and HTTP/3 Implementation in Python
(github.com)
5 points
by
jlaine
7y ago
|
0 comments
2.
▲
by
jlaine
8y ago
So far the main CPU hog is (unsurprisingly) media encoding, especially video. Luckily this occurs off the main thread, inside C function calls. Unless I'm mistaken the GIL is released, so there is no Python-specific downside on this sp
3.
▲
by
jlaine
8y ago
There are several examples available from the project's github repo: https://github.com/jlaine/aiortc/tree/master/examples I personally like the "server" and "apprtc" demos as yo
4.
▲
by
jlaine
8y ago
I can confirm you can get data channels to work with zero SCTP extensions, I only added them afterwards! One implementation (libusrsctp-based) you might want to interop with is rawrtc. Like aiortc's datachannel-cli example, it features
5.
▲
by
jlaine
8y ago
That's good news, the WebRTC world is too much of a libusrsctp monoculture to my taste at the moment. Don't be surprised if you find some interesting edge cases in browsers as you stray from the beaten track :) https://
6.
▲
by
jlaine
8y ago
Duly noted, I've opened an issue to track this: https://github.com/jlaine/aiortc/issues/76 aiortc's RTCPeerConnection indeed uses RTCRtpSender.send to apply parameters. This is directly inspired by
7.
▲
by
jlaine
8y ago
Is there any specific area you spotted which would need some love? Modern spec compliance is most definitely a goal (e.g. RTCRtpTransceiver has been there from the start, aiortc uses the "modern" SDP form for data-channels), so an
8.
▲
by
jlaine
8y ago
Signaling is a very app-specific question, as you can use a wide range of options. If you take a look at the "apprtc" example, it's a demo which uses appr.tc's signaling. You can indeed use aiortc facing a browser, itsel
9.
▲
by
jlaine
8y ago
ORTC is what Microsoft has chosen to implement in Edge, so if you use WebRTC in Edge, you're most likely using the WebRTC-over-ORTC adaptor. In short ORTC is: break WebRTC into objects you manipulate directly, instead of everything bei
10.
▲
by
jlaine
8y ago
Absolutely, might as well enjoy the rich Python ecosystem! Starting with aiortc 0.9.9, there is now also deep integration with PyAV for all your FFmpeg needs. - At the lowest level : aiortc uses PyAV's AudioFrame and VideoFrame class,
11.
▲
by
jlaine
8y ago
Actually that would be SCTP over DTLS over UDP (see RTCDtlsTransport class), and a QUIC transport might be an option in the future: https://groups.google.com/a/chromium.org/forum/#!topic/blink...
12.
▲
Show HN: WebRTC implementation for Python using Asyncio
(github.com)
216 points
by
jlaine
8y ago
|
51 comments