flutter_media_metadata 0.1.0
flutter_media_metadata: ^0.1.0 copied to clipboard

Flutter plugin for reading metadata of media files. Supports Android & Linux.

flutter_media_metadata #

Flutter plugin for reading 🔖 metadata of 🎵 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
3
likes
110
pub points
73%
popularity

Flutter plugin for reading metadata of media files. Supports Android & Linux.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

Uploader

saini123hitesh@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_media_metadata