flutter_mpmediaplayer 1.0.0
flutter_mpmediaplayer: ^1.0.0 copied to clipboard
A plugin to interface with MPMediaPlayer on iOS/iPadOS.
1.0.0 #
Rewrite of the plugin on modern Flutter tooling. The method names and model classes are unchanged, but the requirements and some signatures are not.
BREAKING
- Minimum iOS version is now 15.0, up from 9.0.
- Minimum Flutter version is now 3.44.0, up from 3.10.0. That is where Swift Package Manager became the default for iOS.
searchArtists,searchPlaylists, andgetPlaylistSongsnow take named parameters, matchingsearchSongsandsearchAlbums.getPlaylistSongsalso renames its first parameter toplaylistId.- List results are now unmodifiable.
Fixed
- Requesting a page past the end of the results crashed the app. It now returns an empty list.
getAlbumandgetArtistcrashed on an unknown id. They now throw aPlatformExceptionwith codeNOT_FOUND, orBAD_IDfor a malformed id.getPlaylistSongssent the playlist id under the wrong argument key.searchArtistsandsearchPlaylistspassed a null value into the media query predicate.
Changed
- Platform communication now uses Pigeon. Results no longer travel as JSON strings, and artwork no longer travels as base64. This cuts the encoding work on both sides.
- Media library queries now run off the platform thread, so a large library no longer blocks the UI.
queryis now optional onsearchArtistsandsearchPlaylists, matchingsearchSongsandsearchAlbums. Omitting it returns every artist or playlist in the library.- The iOS side ships as a Swift Package, and still supports CocoaPods.
- Added a privacy manifest (
PrivacyInfo.xcprivacy).
0.3.0 #
- Added
albumArtistfield toSongandPlayedSong. - Updated to Flutter 3.10
- BREAKING: Removed unnamed constructors from model classes. These were never used in internal code and should never have been used in external code.
0.2.0 #
BREAKING: getRecentTracks() is now a paged request.
0.1.2 #
Fixed PlayedSong missing playbackDuration and artwork.
0.1.1 #
Updated image sizes.
0.1.0 #
Added methods for searching and getting detailed entities.
0.0.2 #
- Added
authorizationStatusgetter.
0.0.1 #
- Initial release with support for fetching recent tracks.