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" />
                    
Directory.Packages.props
<PackageReference Include="SimpleAudioPlayer" />
                    
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 SimpleAudioPlayer --version 1.5.2
                    
#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
                    
Install SimpleAudioPlayer as a Cake Addin
#tool nuget:?package=SimpleAudioPlayer&version=1.5.2
                    
Install SimpleAudioPlayer as a Cake Tool

SimpleAudioPlayer

License: MIT

δΈ­ζ–‡η‰ˆζœ¬

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

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

license

Product 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.

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.5.2 94 3/28/2025
1.5.1 89 3/27/2025
1.5.0 96 3/27/2025
1.4.0 127 3/17/2025
1.3.0 123 3/13/2025
1.2.0 132 3/12/2025
1.1.0 140 3/10/2025
1.0.0 134 3/10/2025