SimpleAudioPlayer 1.5.2
dotnet add package SimpleAudioPlayer --version 1.5.2
NuGet\Install-Package SimpleAudioPlayer -Version 1.5.2
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="SimpleAudioPlayer" Version="1.5.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleAudioPlayer" Version="1.5.2" />
<PackageReference Include="SimpleAudioPlayer" />
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 SimpleAudioPlayer --version 1.5.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SimpleAudioPlayer, 1.5.2"
#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.
#addin nuget:?package=SimpleAudioPlayer&version=1.5.2
#tool nuget:?package=SimpleAudioPlayer&version=1.5.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SimpleAudioPlayer
A simple cross-platform audio playback library with SimpleAudioPlayer.Native (LGPL-2.1+) backend, supporting multiple audio formats and streaming protocols.
Features
- π΅ Common audio formats support (via FFmpeg decoding)
- π Multi-protocol handling: local files, HTTP streams, custom streams
- β―οΈ Basic playback controls: Play/Stop/Pause/Seek
- β²οΈ Track duration and progress monitoring
- π§ Extensible stream handling system (custom data sources)
Installation Via NuGet:
Install-Package SimpleAudioPlayer
Quick Start
// Create player instance var player = new AudioPlayer();
// Use file stream (local path)
player.Load(new FileStreamHandle("song.mp3"));
// Get total duration TimeSpan duration = player.GetDuration();
// Playback controls
player.Play();
player.Stop();
player.Pause();
// Progress operations
var currentTime = player.GetTime();
player.Seek(30);
Stream Handlers
Handler Type | Description |
---|---|
FileStreamHandle |
Local file stream |
HttpStreamHandle |
HTTP network stream |
StreamHandle |
Generic stream (requires Stream object) |
CustomHandle |
Fully customizable implementation |
CachedStreamHandle |
Caching support for network streams |
Dependencies
- Audio playback via miniaudio
- Audio decoding via FFmpeg
- Native component: SimpleAudioPlayer.Native (LGPL-2.1+)
License - Main project: MIT License
- Native component: LGPL-2.1+
Important Compliance Notice:
When distributing software using this library, you MUST:
- Provide access to LGPL-licensed component's source code
- Allow end-users to replace the LGPL component
- Include full license texts
Contributing We welcome issues and pull requests! Please include:
- Steps to reproduce issues
- Relevant logs/error messages
- Environment details (OS/.NET version etc.)
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- SimpleAudioPlayer.Native (>= 1.6.0)
-
net9.0
- SimpleAudioPlayer.Native (>= 1.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.