Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

media_metadata_retriever

a simple flutter plugin for reading metadata of media files.

:triangular_ruler: usage

import 'package:media_metadata_retriever/media_metadata_retriever.dart';

future<void> getmetadata() async {
    final metadataretriever = new mediametadataretriever();
    /* set file path */
    await metadataretriever.setfile(new file('/storage/emulated/0/music/music.aac'));
    /* access metadata */
    metadata metadata = await metadataretriever.metadata;
    print(metadata.trackname);
    print(metadata.trackartistnames);
    print(metadata.albumname);
    print(metadata.albumartistname);
    print(metadata.tracknumber);
    print(metadata.albumlength);
    print(metadata.year);
    print(metadata.genre);
    print(metadata.authorname);
    print(metadata.writername);
    print(metadata.discnumber);
    print(metadata.mimetype);
    print(metadata.trackduration);
    print(metadata.bitrate);
    /* alternatively, you may convert it to a map<string, dynamic> */
    metadata.tomap();
}

:iphone: example

you may checkout example app for this plugin here.

screenshot 1 screenshot 2
screenshot0 metadata

:heavy_check_mark: progress

platform status
android working
linux coming soon
windows not working

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.