Uniform.Matrix.WebRtc 0.1.69

There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Uniform.Matrix.WebRtc" Version="0.1.69" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Uniform.Matrix.WebRtc" Version="0.1.69" />
                    
Directory.Packages.props
<PackageReference Include="Uniform.Matrix.WebRtc" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Uniform.Matrix.WebRtc --version 0.1.69
                    
#r "nuget: Uniform.Matrix.WebRtc, 0.1.69"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Uniform.Matrix.WebRtc@0.1.69
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Uniform.Matrix.WebRtc&version=0.1.69
                    
Install as a Cake Addin
#tool nuget:?package=Uniform.Matrix.WebRtc&version=0.1.69
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed