playify 0.0.2 copy "playify: ^0.0.2" to clipboard
playify: ^0.0.2 copied to clipboard

outdated

Playify is a Flutter plugin for playing music and fetching music metadata. Currently supports only iOS.

Playify #

Playify is a Flutter plugin for playing music and fetching music metadata. Currently supports only iOS. Still in development. Checkout the Development Log.

Requirements:

Usage #

import 'package:playify/playify.dart';

//Create an instance
Playify myplayer = Playify();

//Play from the latest queue.
Future<void> play(){
	await myplayer.play();
}

//Fetch all songs from iOS's Apple Music.
Future<List<Artist>> getAllSongs(){
	await myplayer.getAllSongs(sort: true)
}

//Set the queue using songIDs for iOS.
Future<void> setQueue(songs: List<String>, index: int){
	await myplayer.setQueue(songIDs: songs, startIndex: index);
}

//Skip to the next song in the queue.
Future<void> next(){
	await myplayer.next();
}
//Skip to the previous song in the queue.
Future<void> previous(){
	await myplayer.previous();
}

iOS #

  • For iOS, Playify uses iOS's MusicKit framework. This makes Playify available only on iOS >= 10.1. Make sure to specify the minimum version of the supported iOS version in your app from XCode.

  • Getting All Songs: For geting all songs from the Apple Music library of the iPhone, you can specify whether to sort the artists. The songs are sorted by their track number, and the albums are sorted alphabetically. The cover art of each album is fetched individually, and you can specify the size of the cover art. The larger the cover art, the more amount of RAM it consumes and longer it takes to fetch. The default value takes about 1-2 seconds with 800+ songs.

Screenshots #

Screenshot Screenshot Screenshot Screenshot

27
likes
0
pub points
56%
popularity

Publisher

unverified uploader

Playify is a Flutter plugin for playing music and fetching music metadata. Currently supports only iOS.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on playify