You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

SimpleAudioPlayer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

SimpleAudioPlayer

Simple Audio Player with miniaudio and ffmpeg

1.8.2
Source
nugetNuGet
Version published
Maintainers
1
Created
Source

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 
var duration = player.GetDuration();
// Playback controls
player.Play();
player.Stop();
player.Pause();
// Progress operations
var currentTime = player.GetTime();
player.Seek(30);

Stream Handlers

Handler TypeDescription
FileStreamHandleLocal file stream
HttpStreamHandleHTTP network stream
StreamHandleGeneric stream (requires Stream object)
CustomHandleFully customizable implementation
CachedStreamHandleCaching 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

Keywords

audio

FAQs

Package last updated on 27 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts