FLUTTER ECOSYSTEM

iberatkaya/playify

Playify는 곡 재생/일시정지/선택, 음악 메타데이터 가져오기 및 음악 라이브러리 탐색을 위한 Flutter 플러그인입니다.

playify 프로젝트 이미지
Stars
33
Forks
15
최근 푸시(UTC)
2022. 12. 11.
프로젝트 상태
활성
Ibrahim Berat Kaya GitHub avatar
GITHUB User

Ibrahim Berat Kaya ↗

Software Developer interested in Node.js, Flutter, Swift & SwiftUI, React Native, and React.js.

언어DartSwiftKotlinRubyHTMLObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}
  • pedantic개발 의존성^1.9.2

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

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:

  • iOS: >= iOS 10.3
  • Android SDK: >= 21

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

  • For iOS, Playify uses iOS's MediaPlayer 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.

Android

  • For Android, Playify uses Android's MediaPlayer framework. It is available for Android SDK 21+. Make sure to set the minimum version of your app using minSdkVersion.

Screenshots

Screenshot Screenshot Screenshot Screenshot