Skip to content
pubscout

just_audio_media_kit

2.1.0, released 2 years ago by an unverified publisher

media_kit bindings for just_audio to support Linux and Windows.

WASM-ready
$ flutter pub add just_audio_media_kit
Source repository

What it does

Provides media_kit backend bindings for just_audio, enabling audio playback capabilities on Linux and Windows platforms (and optionally others).

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

Use it when

  • You need to use just_audio on Linux and Windows platforms.
  • You want to leverage media_kit's mpv backend for audio playback in a Flutter app.

Skip it when

  • You only need mobile or web audio playback which are natively supported by just_audio.
  • You require ICY metadata, skip silence, or equalizer features which are currently not documented/supported.

Strengths

  • Brings just_audio compatibility to Linux and Windows via media_kit.
  • Supports playlists, looping, shuffling, and gapless playback.
  • Allows customization of mpv log level, buffer size, and protocols.

Weaknesses

  • just_audio's shuffleOrder is currently ignored.
  • Certain features like SilenceAudioSource are not supported.
  • Requires manual installation setup of native media_kit libs based on usage.

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
4

Requires adding platform-specific media_kit libs in pubspec.yaml and calling JustAudioMediaKit.ensureInitialized() before using the AudioPlayer.

JustAudioMediaKit.ensureInitialized();
final player = AudioPlayer();
await player.setUrl('https://example.com/audio.mp3');
player.play();

Alternatives

Packages that do the same job and could replace just_audio_media_kit.

  • audioplayers

    A simpler cross-platform audio playback alternative that also supports multiple platforms.

Works with

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