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

outdated

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
});
10
likes
0
points
79
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to access and play Apple Music.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, music_kit_platform_interface

More

Packages that depend on music_kit