Skip to content
pubscout

mpv_audio_kit

0.7.2, released 4 days ago by ales-drnz.com

Cross-platform audio player built on libmpv and FFmpeg.

WASM-ready
$ flutter pub add mpv_audio_kit
Source repository

What it does

Provides a typed Dart API for audio playback across Android, iOS, macOS, Windows, Linux, web, and TV platforms. Supports FFmpeg audio filters, equalizers, live visualizers, waveforms, and streaming from sources like Jellyfin, Plex, and Samba.

AI-written summary of version 0.7.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need advanced audio features like FFmpeg effects, equalizer, and visualizers.
  • You are building a cross-platform media library player targeting desktop, mobile, web, and TVs.

Skip it when

  • You only need a simple, lightweight sound effects player and want to avoid native library binaries.
  • You do not want the initial build to download prebuilt libmpv binaries.

Strengths

  • Supports an extensive range of platforms including desktop, mobile, web, and TV OSes.
  • Includes rich audio tuning, filters, and analysis tools like live spectrum and waveform.
  • Handles complex media protocols and streaming out of the box.

Weaknesses

  • First build requires network access to download native libmpv binaries for each target.
  • Adds significant binary size to the application due to embedded libmpv.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
6

First build needs network access to download native libmpv binaries. Requires specific background mode capabilities on iOS and internet permissions on Android.

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  MpvAudioKit.ensureInitialized();
  runApp(const MyApp());
}

final player = Player();
await player.open(Media('https://example.com/audio.flac'));
await player.play();

player.stream.position.listen((position) => print(position));

Alternatives

Packages that do the same job and could replace mpv_audio_kit.

  • just_audio

    A feature-rich, pure Dart and native audio player widely used for complex playlists and platform media sessions without embedding libmpv.

  • audioplayers

    Simpler and quicker to set up for basic audio playback and sound effects.

Works with

Packages commonly used together with mpv_audio_kit: ones it builds on, ones built on it, and its own family.