Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexmercerind/flutter_media_metadata
A Flutter plugin to read 🔖 metadata of 🎵 media files. Supports Windows, Linux, macOS, Android, iOS & Web.
https://github.com/alexmercerind/flutter_media_metadata
android flutter flutter-metadata flutter-plugin linux media-metadata-retriever media-tags metadata tags windows
Last synced: 7 days ago
JSON representation
A Flutter plugin to read 🔖 metadata of 🎵 media files. Supports Windows, Linux, macOS, Android, iOS & Web.
- Host: GitHub
- URL: https://github.com/alexmercerind/flutter_media_metadata
- Owner: alexmercerind
- License: mit
- Created: 2020-12-31T16:44:07.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T06:47:25.000Z (9 months ago)
- Last Synced: 2024-05-18T22:54:09.895Z (6 months ago)
- Topics: android, flutter, flutter-metadata, flutter-plugin, linux, media-metadata-retriever, media-tags, metadata, tags, windows
- Language: C++
- Homepage:
- Size: 4.51 MB
- Stars: 69
- Watchers: 1
- Forks: 33
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-flutter-desktop - flutter_media_metadata - A Flutter plugin to read metadata of media files. (Packages)
README
# [flutter_media_metadata](https://github.com/alexmercerind/flutter_media_metadata)
#### A Flutter plugin to read 🔖 metadata of 🎵 media files.## Install
Add in your `pubspec.yaml`.
```yaml
dependencies:
...
flutter_media_metadata: ^1.0.0
```_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)
Please consider buying me a coffee if you like the plugin.
## Documentation
#### Windows, Linux, macOS, Android & iOS
```dart
final metadata = await MetadataRetriever.fromFile(File(filePath));String? trackName = metadata.trackName;
List? trackArtistNames = metadata.trackArtistNames;
String? albumName = metadata.albumName;
String? albumArtistName = metadata.albumArtistName;
int? trackNumber = metadata.trackNumber;
int? albumLength = metadata.albumLength;
int? year = metadata.year;
String? genre = metadata.genre;
String? authorName = metadata.authorName;
String? writerName = metadata.writerName;
int? discNumber = metadata.discNumber;
String? mimeType = metadata.mimeType;
int? trackDuration = metadata.trackDuration;
int? bitrate = metadata.bitrate;
Uint8List? albumArt = metadata.albumArt;
```#### Web
For using the plugin on web, add following line to your `index.html`.
```diff
+
var serviceWorkerVersion = null;
var scriptLoaded = false;
```And use `MetadataRetriever.fromBytes` instead of `MetadataRetriever.fromFile`.
## Platforms
|Platform|Status |Author/Maintainer |
|--------|---------|--------------------------------------------------------------|
|Windows |✔️ |[Hitesh Kumar Saini](https://github.com/alexmercerind) |
|Linux |✔️ |[Hitesh Kumar Saini](https://github.com/alexmercerind) |
|Android |✔️ |[Hitesh Kumar Saini](https://github.com/alexmercerind) |
|Web |✔️ |[Hitesh Kumar Saini](https://github.com/alexmercerind) |
|MacOS |✔️ |[@DiscombobulatedDrag](https://github.com/DiscombobulatedDrag)|
|iOS |✔️ |[@DiscombobulatedDrag](https://github.com/DiscombobulatedDrag)|<img width="555" src="https://user-images.githubusercontent.com/28951144/151707427-76d75f04-9efe-4b1d-80fb-fdeea73dad26.png">
_Example app running on Web._
<img width="200" src="https://user-images.githubusercontent.com/28951144/151707533-198ba2ca-d646-4bc4-811b-928f65ee03ea.png">
_Example app running on Android._
<img width="555" src="https://user-images.githubusercontent.com/28951144/151707526-319ca3f5-9849-4d57-8ea4-9595ee67e99c.png">
_Example app running on Linux._
## License
This library & work under this repository is MIT licensed.
Copyright (c) 2021-2022 Hitesh Kumar Saini <[email protected]>