Skip to main content

mpv_audio_kit 0.7.0 copy "mpv_audio_kit: ^0.7.0" to clipboard
mpv_audio_kit: ^0.7.0 copied to clipboard

Dart audio player built on mpv v0.41.0, with audio filters, equalizer, visualizer and waveform. For Android, iOS, macOS, Windows, Linux, web, Android TV, tvOS, Tizen and webOS.

example/example.dart

// Minimal mpv_audio_kit example
import 'package:flutter/widgets.dart';
import 'package:mpv_audio_kit/mpv_audio_kit.dart';

Future<void> main() async {
  // The media session talks to the OS through a platform channel, which
  // needs the Flutter binding.
  WidgetsFlutterBinding.ensureInitialized();

  // Registers the native libmpv backend. Call once before any Player.
  MpvAudioKit.ensureInitialized();

  // Initiate the player.
  final player = Player();

  // Publish to the OS media session.
  await player.setMediaSession(const MediaSession());

  // Open and play.
  await player.open(const Media('https://example.com/song.mp3'));
  await player.play();

  // Call dispose() when you're done with the player for good.
  // await player.dispose();
}
56
likes
160
points
4.67k
downloads
screenshot

Documentation

API reference

Publisher

verified publisherales-drnz.com

Weekly Downloads

Dart audio player built on mpv v0.41.0, with audio filters, equalizer, visualizer and waveform. For Android, iOS, macOS, Windows, Linux, web, Android TV, tvOS, Tizen and webOS.

Repository (GitHub)
View/report issues
Contributing

Topics

#audio #audio-player #music #ffmpeg #tv

Funding

Consider supporting this project:

www.patreon.com
www.buymeacoffee.com

License

BSD-3-Clause (license)

Dependencies

code_assets, crypto, ffi, fftea, flutter, flutter_web_plugins, hooks, meta

More

Packages that depend on mpv_audio_kit

Packages that implement mpv_audio_kit