iberatkaya / playify

Playify is a Flutter plugin for play/pause/seek songs, fetching music metadata, and browsing music library.
https://pub.dev/packages/playify
MIT License
33 stars 13 forks source link
flutter flutter-plugin ios music plugin songs swift

Playify

Pub Version

Playify is a Flutter plugin for play/pause/seek songs, fetching music metadata, and browsing music library. Playify was built using iOS's MediaPlayer Framework and Android's MediaPlayer to fetch and play music from the users music library. 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 the user's device.
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 songID's.
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

Android

Screenshots

Screenshot Screenshot Screenshot Screenshot