Uniform.Matrix.WebRtc
0.1.69
See the version list below for details.
dotnet add package Uniform.Matrix.WebRtc --version 0.1.69
NuGet\Install-Package Uniform.Matrix.WebRtc -Version 0.1.69
<PackageReference Include="Uniform.Matrix.WebRtc" Version="0.1.69" />
<PackageVersion Include="Uniform.Matrix.WebRtc" Version="0.1.69" />
<PackageReference Include="Uniform.Matrix.WebRtc" />
paket add Uniform.Matrix.WebRtc --version 0.1.69
#r "nuget: Uniform.Matrix.WebRtc, 0.1.69"
#:package Uniform.Matrix.WebRtc@0.1.69
#addin nuget:?package=Uniform.Matrix.WebRtc&version=0.1.69
#tool nuget:?package=Uniform.Matrix.WebRtc&version=0.1.69
Uniform.Matrix.WebRtc
Uniform.Matrix.WebRtc is the subset of WebRTC that a 1:1 call needs, in pure C#: SDP, ICE, DTLS-SRTP and RTP, with Opus audio and VP8 video both ways and RTCP feedback. It works with browsers, Element and LiveKit's SFU. DTLS uses BouncyCastle, and STUN and TURN come from Uniform.Stun.
dotnet add package Uniform.Matrix.WebRtc
A connection
AudioPeerConnection puts the layers together: the caller offers, the callee answers, both trickle their candidates to the other, and both connect.
await using AudioPeerConnection caller = new(), callee = new();
caller.CandidateGathered += candidate => callee.AddRemoteCandidate(candidate.ToString());
callee.CandidateGathered += candidate => caller.AddRemoteCandidate(candidate.ToString());
callee.AudioReceived += packet => Play(decoder.Decode(packet.Payload));
string answer = callee.AcceptOffer(caller.CreateOffer());
caller.AcceptAnswer(answer);
await Task.WhenAll(caller.ConnectAsync(), callee.ConnectAsync());
await caller.SendAudioAsync(encoder.Encode(frame));
CreateOffer(video: true) adds video, sent with SendVideoAsync and received through VideoReceived. Nothing here knows about Matrix; Uniform.Matrix.Calls builds calls on it.
About
Part of Uniform.Chat, a pure .NET implementation of the Matrix specification. It is an early pre-release: APIs may still change. More in the developer guide.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- BouncyCastle.Cryptography (>= 2.7.0)
- Uniform.Stun (>= 0.1.69)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Uniform.Matrix.WebRtc:
| Package | Downloads |
|---|---|
|
Uniform.Matrix.Calls
Matrix 1:1 voice and video calls for the Uniform.Matrix client engine: MatrixRTC calls through an SFU, as Element X makes them, and legacy m.call.* calls; WebRTC media with Uniform.Matrix.WebRtc, voice through Uniform.Matrix.Audio, and VP8 video with Uniform.Matrix.Video. |
|
|
Uniform.MatrixRtc
An SFU client in pure C#: signalling, publishing and subscribing over WebRTC, and the end-to-end encryption of frames; and clients of the SFU's room service and of a MatrixRTC authorization service (lk-jwt-service), which exchanges a Matrix OpenID token for an SFU access token. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.70 | 157 | 11/30/2026 |
| 0.1.69 | 155 | 11/29/2026 |
| 0.1.66 | 156 | 11/25/2026 |
| 0.1.65 | 153 | 11/24/2026 |
| 0.1.64 | 151 | 11/24/2026 |
| 0.1.63 | 142 | 11/24/2026 |
| 0.1.59 | 145 | 11/23/2026 |
| 0.1.58 | 148 | 11/19/2026 |
| 0.1.57 | 144 | 11/19/2026 |
| 0.1.55 | 137 | 11/18/2026 |
| 0.1.54 | 137 | 11/18/2026 |
| 0.1.53 | 146 | 11/18/2026 |
| 0.1.52 | 155 | 11/18/2026 |
| 0.1.51 | 154 | 11/15/2026 |
| 0.1.50 | 146 | 11/13/2026 |
| 0.1.49 | 147 | 11/12/2026 |
| 0.1.46 | 171 | 11/12/2026 |
| 0.1.43 | 143 | 11/11/2026 |
| 0.1.42 | 145 | 11/11/2026 |
| 0.1.39 | 138 | 11/11/2026 |