Soenneker.Telnyx.Blazor.WebRtc 3.0.145

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Telnyx.Blazor.WebRtc --version 3.0.145
                    
NuGet\Install-Package Soenneker.Telnyx.Blazor.WebRtc -Version 3.0.145
                    
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="Soenneker.Telnyx.Blazor.WebRtc" Version="3.0.145" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Telnyx.Blazor.WebRtc" Version="3.0.145" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Telnyx.Blazor.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 Soenneker.Telnyx.Blazor.WebRtc --version 3.0.145
                    
#r "nuget: Soenneker.Telnyx.Blazor.WebRtc, 3.0.145"
                    
#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 Soenneker.Telnyx.Blazor.WebRtc@3.0.145
                    
#: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=Soenneker.Telnyx.Blazor.WebRtc&version=3.0.145
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Telnyx.Blazor.WebRtc&version=3.0.145
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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

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
3.0.150 52 9/26/2025
3.0.149 78 9/26/2025
3.0.148 92 9/26/2025
3.0.147 134 9/22/2025
3.0.146 130 9/21/2025
3.0.145 154 9/20/2025
3.0.144 157 9/20/2025
3.0.143 233 9/19/2025
3.0.142 265 9/19/2025
3.0.141 265 9/18/2025
3.0.140 268 9/18/2025
3.0.139 270 9/17/2025
3.0.138 266 9/17/2025
3.0.137 274 9/17/2025
3.0.136 274 9/17/2025
3.0.135 271 9/17/2025
3.0.134 264 9/16/2025
3.0.133 258 9/16/2025
3.0.132 130 9/10/2025
3.0.131 133 9/10/2025
3.0.130 129 9/9/2025
3.0.129 134 9/9/2025
3.0.128 130 9/9/2025
3.0.127 130 9/9/2025
3.0.126 133 9/9/2025
3.0.125 131 9/9/2025
3.0.124 133 9/9/2025
3.0.123 128 9/9/2025
3.0.122 129 9/9/2025
3.0.121 131 9/9/2025
3.0.120 124 9/9/2025
3.0.119 110 9/7/2025
3.0.118 103 9/7/2025
3.0.117 104 9/6/2025
3.0.116 102 9/6/2025
3.0.115 103 9/6/2025
3.0.114 105 9/6/2025
3.0.113 87 9/5/2025
3.0.112 152 9/4/2025
3.0.111 146 9/4/2025
3.0.110 143 9/4/2025
3.0.109 144 9/3/2025
3.0.108 141 9/3/2025
3.0.107 142 9/3/2025
3.0.106 137 9/3/2025
3.0.105 140 9/3/2025
3.0.104 142 9/3/2025
3.0.103 140 9/3/2025
3.0.102 137 9/3/2025
3.0.101 143 9/3/2025
3.0.100 137 9/3/2025
3.0.99 91 8/22/2025
3.0.98 114 8/17/2025
3.0.97 104 8/17/2025
3.0.96 127 8/15/2025
3.0.95 133 8/14/2025
3.0.94 135 8/12/2025
3.0.93 140 8/12/2025
3.0.92 132 8/12/2025
3.0.91 133 8/11/2025
3.0.90 132 8/11/2025
3.0.89 131 8/11/2025
3.0.88 131 8/11/2025
3.0.87 128 8/11/2025
3.0.86 126 8/11/2025
3.0.85 126 8/11/2025
3.0.84 126 8/11/2025
3.0.83 129 8/10/2025
3.0.82 131 8/10/2025
3.0.81 215 8/6/2025
3.0.80 223 8/5/2025
3.0.79 221 8/5/2025
3.0.78 223 8/5/2025
3.0.77 226 8/5/2025
3.0.76 222 8/5/2025
3.0.75 204 8/5/2025
3.0.74 199 8/5/2025
3.0.73 201 8/5/2025
3.0.72 115 7/30/2025
3.0.71 107 7/29/2025
3.0.70 465 7/23/2025
3.0.69 513 7/23/2025
3.0.68 165 7/17/2025
3.0.67 138 7/17/2025
3.0.66 136 7/17/2025
3.0.65 141 7/16/2025
3.0.64 143 7/15/2025
3.0.63 140 7/15/2025
3.0.62 137 7/15/2025
3.0.61 142 7/14/2025
3.0.60 106 7/13/2025
3.0.59 154 7/9/2025
3.0.58 140 7/9/2025
3.0.57 140 7/9/2025
3.0.56 138 7/9/2025
3.0.55 136 7/9/2025
3.0.54 141 7/8/2025
3.0.53 144 7/8/2025
3.0.52 141 7/8/2025
3.0.51 200 7/3/2025
3.0.50 145 7/3/2025
3.0.49 149 7/3/2025
3.0.48 164 7/1/2025
3.0.47 131 6/28/2025
3.0.46 100 6/28/2025
3.0.45 98 6/28/2025
3.0.44 71 6/28/2025
3.0.43 78 6/28/2025
3.0.42 79 6/27/2025
3.0.41 77 6/27/2025
3.0.40 83 6/27/2025
3.0.39 147 6/25/2025
3.0.38 146 6/25/2025
3.0.37 392 6/12/2025
3.0.36 294 6/11/2025
3.0.35 293 6/11/2025
3.0.34 290 6/11/2025
3.0.33 168 6/3/2025
3.0.32 155 6/3/2025
3.0.31 150 6/2/2025
3.0.30 193 5/28/2025
3.0.29 161 5/28/2025
3.0.28 155 5/28/2025
3.0.27 155 5/27/2025
3.0.26 151 5/27/2025
3.0.25 152 5/27/2025
3.0.24 151 5/27/2025
3.0.23 151 5/27/2025
3.0.22 151 5/26/2025
3.0.21 109 5/25/2025
3.0.20 104 5/25/2025
3.0.19 104 5/23/2025
3.0.18 106 5/23/2025
3.0.17 102 5/23/2025
3.0.16 121 5/23/2025
3.0.15 133 5/23/2025
3.0.14 132 5/23/2025
3.0.13 161 5/23/2025
3.0.12 163 5/22/2025
3.0.11 145 5/22/2025
3.0.10 152 5/22/2025
3.0.9 160 5/19/2025
3.0.8 151 5/18/2025
3.0.7 106 5/18/2025
3.0.6 240 5/15/2025
3.0.5 230 5/15/2025
3.0.4 236 5/15/2025
3.0.3 234 5/14/2025
3.0.2 233 5/14/2025
3.0.1 229 5/14/2025