diff --git a/README.md b/README.md index e9c3c4c..22c9755 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,5 @@ -

flutter_media_metadata

-

A Flutter plugin to read metadata of media files.

-
A part of Harmonoid open source project 💜
-

-

+# [flutter_media_metadata](https://github.com/alexmercerind/flutter_media_metadata) +#### A Flutter plugin to read 🔖 metadata of 🎵 media files. ## Install @@ -11,15 +8,27 @@ Add in your `pubspec.yaml`. ```yaml dependencies: ... - flutter_media_metadata: ^0.1.2 + flutter_media_metadata: ^1.0.0 ``` -Issues are maintained [here](https://github.com/alexmercerind/harmonoid). + -## Example +_Example app running on Windows._ + +## Support + +[![Support via PayPal](https://cdn.rawgit.com/twolfson/paypal-github-button/1.0.0/dist/button.svg)](https://www.paypal.me/alexmercerind) + +Buy Me A Coffee + +Please consider buying me a coffee if you like the plugin. + +## Documentation + +#### Windows, Linux, macOS, Android & iOS ```dart -var metadata = await MetadataRetriever.fromFile(File('C:/Users/Alex/Music/SampleMusic.OGG')) +final metadata = await MetadataRetriever.fromFile(File(filePath)); String? trackName = metadata.trackName; List? trackArtistNames = metadata.trackArtistNames; @@ -38,26 +47,50 @@ int? bitrate = metadata.bitrate; Uint8List? albumArt = metadata.albumArt; ``` +#### Web + +For using the plugin on web, add following line to your `index.html`. + +```diff + + + ++ + +