Soenneker.Telnyx.Blazor.WebRtc
4.0.488
Prefix Reserved
dotnet add package Soenneker.Telnyx.Blazor.WebRtc --version 4.0.488
NuGet\Install-Package Soenneker.Telnyx.Blazor.WebRtc -Version 4.0.488
<PackageReference Include="Soenneker.Telnyx.Blazor.WebRtc" Version="4.0.488" />
<PackageVersion Include="Soenneker.Telnyx.Blazor.WebRtc" Version="4.0.488" />
<PackageReference Include="Soenneker.Telnyx.Blazor.WebRtc" />
paket add Soenneker.Telnyx.Blazor.WebRtc --version 4.0.488
#r "nuget: Soenneker.Telnyx.Blazor.WebRtc, 4.0.488"
#:package Soenneker.Telnyx.Blazor.WebRtc@4.0.488
#addin nuget:?package=Soenneker.Telnyx.Blazor.WebRtc&version=4.0.488
#tool nuget:?package=Soenneker.Telnyx.Blazor.WebRtc&version=4.0.488
Soenneker.Telnyx.Blazor.WebRtc
A Blazor WebRTC component library for Telnyx, enabling real-time communication capabilities in your Blazor applications.
Key Features
? Real-time WebRTC Communication Seamless voice and video calling powered by Telnyx�s browser-based WebRTC SDK.
?? Automatic JS Module Bootstrapping Built-in JavaScript interop initialization with lazy loading and Blazor lifecycle integration.
?? High-Quality Audio & Video Calls Support for two-way audio and video with full control over microphone and webcam devices.
?? Advanced Call Management Programmatic control over call lifecycle: initiate, answer, hangup, hold, resume, mute/unmute, deaf/undeaf, DTMF tones, and more.
?? Device Enumeration & Dynamic Selection Enumerate and switch between available microphones, speakers, and cameras at runtime.
?? Custom Headers & Signaling Options Pass custom SIP headers during call setup for advanced routing or metadata requirements.
?? ICE Server & TURN/STUN Configuration Fully configurable ICE server settings for NAT traversal and improved connectivity in restricted networks.
?? Comprehensive Event Notifications Capture and handle all Telnyx WebRTC events: connection, media stream, call state, device changes, stats reports, and more.
Installation
dotnet add package Soenneker.Telnyx.Blazor.WebRtc
Setup
1. Register Services
In your Program.cs or startup file:
public static async Task Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
// Register Telnyx WebRTC services
builder.Services.AddTelnyxWebRtcInteropAsScoped();
}
2. Component Usage
Add the TelnyxWebRtc component to your Blazor page:
@using Soenneker.Telnyx.Blazor.WebRtc
<TelnyxWebRtc @ref="_telnyxWebRtc" Options="@_options" />
@code {
private ITelnyxWebRtc? _telnyxWebRtc;
private TelnyxClientOptions _options;
protected override void OnInitialized()
{
_options = new TelnyxClientOptions
{
InitOptions = new TelnyxClientInitOptions
{
Login = "YOUR_TELNYX_LOGIN",
Password = "YOUR_TELNYX_PASSWORD"
// Set other properties as needed
}
};
}
}
Events
The component provides various events you can subscribe to:
_telnyxWebRtc.OnInitialize += HandleInitialize;
_telnyxWebRtc.OnReady += HandleReady;
_telnyxWebRtc.OnError += HandleError;
_telnyxWebRtc.OnMessage += HandleMessage;
_telnyxWebRtc.OnNotification += HandleNotification;
_telnyxWebRtc.OnCallInitiated += HandleCallInitiated;
_telnyxWebRtc.OnCallAnswered += HandleCallAnswered;
_telnyxWebRtc.OnCallHeld += HandleCallHeld;
_telnyxWebRtc.OnCallResumed += HandleCallResumed;
_telnyxWebRtc.OnCallHangup += HandleCallHangup;
...
Example Usage
Making a Call
var callOptions = new TelnyxCallOptions
{
DestinationNumber = "+1234567890",
CallerName = "John Doe",
CallerNumber = "+1987654321"
};
await _telnyxWebRtc.Call(callOptions);
Answering a Call
var answerOptions = new TelnyxAnswerOptions
{
AutoPlayAudio = true
};
await _telnyxWebRtc.Answer(answerOptions);
Hanging Up
await _telnyxWebRtc.Hangup();
| 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
- Soenneker.Asyncs.Initializers (>= 4.0.49)
- Soenneker.Blazor.Extensions.EventCallback (>= 4.0.449)
- Soenneker.Blazor.Utils.InteropEventListener (>= 4.0.3961)
- Soenneker.Blazor.Utils.ResourceLoader (>= 4.0.1662)
- Soenneker.Gen.EnumValues (>= 4.0.35)
- Soenneker.Lepton.Suite (>= 4.0.12)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.488 | 108 | 5/13/2026 |
| 4.0.487 | 95 | 5/13/2026 |
| 4.0.486 | 82 | 5/13/2026 |
| 4.0.484 | 91 | 5/13/2026 |
| 4.0.483 | 97 | 5/13/2026 |
| 4.0.482 | 92 | 5/12/2026 |
| 4.0.481 | 100 | 5/12/2026 |
| 4.0.480 | 98 | 5/6/2026 |
| 4.0.479 | 95 | 5/3/2026 |
| 4.0.478 | 96 | 5/3/2026 |
| 4.0.477 | 106 | 5/2/2026 |
| 4.0.476 | 93 | 5/2/2026 |
| 4.0.475 | 101 | 5/2/2026 |
| 4.0.474 | 100 | 5/1/2026 |
| 4.0.473 | 94 | 5/1/2026 |
| 4.0.472 | 109 | 4/27/2026 |
| 4.0.471 | 104 | 4/24/2026 |
| 4.0.470 | 102 | 4/24/2026 |
| 4.0.469 | 113 | 4/24/2026 |
| 4.0.468 | 107 | 4/24/2026 |
Update dependency Soenneker.Blazor.Utils.ResourceLoader to 4.0.1662 (#1208)