Our great sponsors
-
libdatachannel
C/C++ WebRTC network library featuring Data Channels, Media Transport, and WebSockets
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
This does use a real WebRTC stack (specifically libdatachannel - https://libdatachannel.org). Under the hood this is making real WebRTC connections.
But I guess you mean why it doesn't mock using real peers in the browser where the tests are happening, using the browser's existing stack there?
There's a few reasons I've avoided that:
* Primarily: I want to do things that the browser APIs won't let you do. E.g. sending invalid data, or intentionally causing various types of errors. The browser APIs are designed to stop you doing the wrong thing, by keeping the raw data at arm's length. Very sensible for normal WebRTC usage, but bad for testing edge cases and breaking things.
Related posts
- Security Framework
- Is there a master here who can implement WebRTC video capture in C++?
- FFmpeg - correct configuration for building webRTC in native C++?
- What are the differences between UDP and WebSockets, and which type of games benefit from which?
- Wanting some advice on streaming audio from a raspberry pi to browsers.