AppMare.MauiWeb.Audio 1.0.5

dotnet add package AppMare.MauiWeb.Audio --version 1.0.5
                    
NuGet\Install-Package AppMare.MauiWeb.Audio -Version 1.0.5
                    
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="AppMare.MauiWeb.Audio" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AppMare.MauiWeb.Audio" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="AppMare.MauiWeb.Audio" />
                    
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 AppMare.MauiWeb.Audio --version 1.0.5
                    
#r "nuget: AppMare.MauiWeb.Audio, 1.0.5"
                    
#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 AppMare.MauiWeb.Audio@1.0.5
                    
#: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=AppMare.MauiWeb.Audio&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=AppMare.MauiWeb.Audio&version=1.0.5
                    
Install as a Cake Tool

AppMare.MauiWeb.Audio — Plugin.Maui.Audio on the web

This is not a new audio library. It is web support for Plugin.Maui.Audio. You keep using Plugin.Maui.Audio and its API (AudioManager.Current, IAudioManager, IAudioPlayer, IAudioRecorder, IAudioStreamer). This package makes that same code run in the visitor's browser when your .NET MAUI app runs as a website with MauiWeb.

Setup

Your MAUI app already references Plugin.Maui.Audio and calls AddAudio(). Add this package to the web host and turn it on after UseMauiWeb():

dotnet add package AppMare.MauiWeb.Audio
app.MapMauiWeb(() => MauiProgram.CreateMauiApp(b => b
    .UseMauiWeb()
    .UseMauiWebAudio()));

No other changes. Your players, recorders and streamers now work in the browser.

What works in the browser

  • Players: Play, Pause, Stop, Seek, Volume, Balance, Speed (0.25 to 4) and Loop. Sound comes from a stream or a file in Resources/Raw. Duration, CurrentPosition, IsPlaying, PlaybackEnded and Error come back from the browser.
  • Recorder: records the microphone to a WAV file with the options' sample rate, channels and bit depth. StopAsync returns it as a file.
  • Streamer: OnAudioCaptured receives raw PCM about ten times a second.

Web differences

  • Browsers play sound only after the visitor has tapped the page. A Play before that asks them to tap once.
  • Recording needs an https:// page, and the browser asks the visitor for the microphone.
  • Recordings are WAV; other encodings throw NotSupportedException when ThrowIfNotSupported is set.

See it running

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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
1.0.5 87 11/11/2026
1.0.4 82 11/11/2026
1.0.3 64 11/11/2026
1.0.2 57 11/11/2026
1.0.1 80 10/31/2026