Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

playify

playify is a flutter plugin for play/pause/seek songs, fetching music metadata, and browsing music library. playify was built using ios’s media player framework to fetch and play music from ios’s music library. currently supports only ios, but android support is being developed. pr’s are welcomed. checkout the documentation.

requirements:

usage

import 'package:playify/playify.dart';

//create an instance
playify myplayer = playify();

//play from the latest queue.
await myplayer.play();

//fetch all songs from ios's apple music.
var artists = await myplayer.getallsongs(sort: true);

//fetch song information about the currently playing song in the queue.
var songinfo = await myplayer.nowplaying();

//set the queue using songids for ios.
await myplayer.setqueue(songids: songids);

//skip to the next song in the queue.
await myplayer.next();

//skip to the previous song in the queue.
await myplayer.previous();

//set the playback time of the song.
await myplayer.setplaybacktime(time);

//set the shuffle mode.
await myplayer.setshufflemode(mode);

ios

  • for ios, playify uses ios’s media player framework. this makes playify available only on ios >= 10.3. make sure to specify the minimum version of the supported ios version of 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. in my case, the default value takes about 1-2 seconds with 800+ songs.

screenshots

screenshot
screenshot
screenshot
screenshot


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.