FlutterMPMediaPlayer class

Constructors

FlutterMPMediaPlayer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

authorizationStatus Future<AuthorizationStatus>
Returns whether the app can access the user's media library.
no setter

Static Methods

authorize() Future<AuthorizationStatus>
Asks for the user's permission to access their music library.
getAlbum(String albumId) Future<FullAlbum>
getArtist(String artistId) Future<Artist>
getPlaylistSongs(String playlistId, int limit, int page) Future<List<Song>>
getRecentTracks({DateTime? after, required int limit, required int page}) Future<List<PlayedSong>>
Fetches a list of PlayedSongs.
searchAlbums({String? query, String? artistId, required int limit, required int page}) Future<List<Album>>
searchArtists(String query, int limit, int page) Future<List<Artist>>
searchPlaylists(String query, int limit, int page) Future<List<Playlist>>
searchSongs({String? query, String? artistId, required int limit, required int page}) Future<List<Song>>