flutter_media_metadata

Flutter plugin for reading :bookmark: metadata of :musical_note: media files.

Installing

dependencies:
  flutter_media_metadata: ^0.0.3+2

Using

import 'package:flutter_media_metadata/flutter_media_metadata.dart';

var retriever = new MetadataRetriever();
await retriever.setFile(new File('/storage/emulated/0/Music/music.aac'));
Metadata metadata = await retriever.metadata;

metadata.trackName;
metadata.trackArtistNames;
metadata.albumName;
metadata.albumArtistName;
metadata.trackNumber;
metadata.albumLength;
metadata.year;
metadata.genre;
metadata.authorName;
metadata.writerName;
metadata.discNumber;
metadata.mimeType;
metadata.trackDuration;
metadata.bitrate;

retriever.albumArt;

await retriever.setUri(new Uri.https('www.example.com', '/audio.MP3', {}));

Map<String, dynamic> = await metadata.toMap();

For using this plugin in Linux Desktop app, you must install MediaInfoLib.

On debian based distros, run

sudo apt install libmediainfo-dev

Supporting

Example

You may checkout example app for this plugin here.

Android

Linux

Progress

PlatformStatus
AndroidWorking
LinuxWorking
WindowsComing Soon

Libraries

flutter_media_metadata