A Simple Flutter Plugin for Reading Metadata of Media Files

A Simple Flutter Plugin for Reading Metadata of Media Files

A simple Flutter plugin for reading πŸ”– metadata of 🎡 media files.

media_metadata_retriever

A simple Flutter plugin for reading πŸ”– metadata of 🎡 media files.

πŸ’Ύ Install

dependencies:
  media_metadata_retriever: ^0.0.1+4

πŸ“ Usage

import 'package:media_metadata_retriever/media_metadata_retriever.dart';

Future<Map<String, dynamic>> getMetadata() async {
    final retriever = new MediaMetadataRetriever();
    /* Setting a file path. */
    await metadataRetriever.setFile(new File('/storage/emulated/0/Music/music.aac'));
    /* Reading its metadata. */
    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;
    /* Accessing album art as Uint8List. Use [Image.memory] to show it inside the app. */
    retriever.albumArt;
    /* Converting metadata to a Map<String, dynamic>. */
    return metadata.toMap();
}

πŸ“± Example

You may checkout example app for this plugin here.

Screenshot 1 Screenshot 2

βœ”οΈ Progress

Platform Status
Android Working
Linux Coming Soon
Windows Not Working

🧷 How?

MediaMetadataRetriever on Android does the job. Pretty easy right?

Download Details:

Author: alexmercerind

Source Code: https://github.com/alexmercerind/media_metadata_retriever

flutter dart mobile-apps

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Google's Flutter 1.20 stable announced with new features - Navoki

Google has announced new flutter 1.20 stable with many improvements, and features, enabling flutter for Desktop and Web

Top 25 Flutter Mobile App Templates in 2020

Flutter has been booming worldwide from the past few years. While there are many popular mobile app development technologies out there, Flutter has managed to leave its mark in the mobile application development world. In this article, we’ve curated the best Flutter app templates available on the market as of July 2020.

Flutter App Development Trends 2020

As the new decade dawns upon us, a slew of technologies has been making a lot of noise to grab the developers’ attention. While native app development is going strong, the trade winds are now blowing towards going cross-platform.

How To Succeed In Mobile App Wireframe Design?

This article covers everything about mobile app wireframe design: what to do and what not, tools used in designing a mobile or web app wireframe, and more.

Top 10 Mobile App Development Companies in India

The mobile application scenario has been continually changing over the years. In recent years India has become a center for mobile app development companies. The increase of smartphones has instantly increased the requirements for these apps. Every year new technological trends occur due to contin