music_kit 1.1.0 copy "music_kit: ^1.1.0" to clipboard
music_kit: ^1.1.0 copied to clipboard

A Flutter plugin to access and play Apple Music.

Music Kit #

A Flutter plugin to access and play Apple Music.

Platform Support #

Android iOS MacOS Web Linux Windows
✔️ ✔️

Usage #

To use this plugin, add music_kit as a dependency in your pubspec.yaml file.

Example #

// Import package
import 'package:music_kit/music_kit.dart';

// Instantiate it
var musicKit = MusicKit();

// Set Queue
await musicKit.setQueue(item.type, item: item.toJson())

// Play
await musicKit.play();

// Be informed when the player state changes
musicKit.onMusicPlayerStateChanged.listen((MusicPlayerState state) {
  // Do something with new state
});
6
likes
140
pub points
72%
popularity

Publisher

unverified uploader

A Flutter plugin to access and play Apple Music.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, music_kit_platform_interface

More

Packages that depend on music_kit