Buscar pacotes, repositórios e categorias de apps

Repositório GitHubalexmercerind/flutter_media_metadata

flutter_media_metadata

Um plugin Flutter para ler metadados 🔖 de arquivos de mídia 🎵. Suporta Windows, Linux, macOS, Android, iOS e Web.

Capa do projeto flutter_media_metadata
Estrelas
75
Forks
72
Último push (UTC)
22 de fev. de 2024
Status do projeto
Ativo

README original

Texto original em inglês. Visite o GitHub para a versão atual.

flutter_media_metadata

A Flutter plugin to read 🔖 metadata of 🎵 media files.

Install

Add in your pubspec.yaml.

dependencies:
  ...
  flutter_media_metadata: ^1.0.0

Example app running on Windows.

Support

Support via PayPal

Buy Me A Coffee

Please consider buying me a coffee if you like the plugin.

Documentation

Windows, Linux, macOS, Android & iOS
final metadata = await MetadataRetriever.fromFile(File(filePath));

String? trackName = metadata.trackName;
List<String>? 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.

   <link rel="manifest" href="manifest.json">
 </head>
 <body>
+  <script type="text/javascript" src="https://unpkg.com/mediainfo.js/dist/mediainfo.min.js"></script>
   <!-- This script installs service_worker.js to provide PWA functionality to
        application. For more information, see:
        https://developers.google.com/web/fundamentals/primers/service-workers -->
   <script>
     var serviceWorkerVersion = null;
     var scriptLoaded = false;

And use MetadataRetriever.fromBytes instead of MetadataRetriever.fromFile.

Platforms

Platform Status Author/Maintainer
Windows ✔️ Hitesh Kumar Saini
Linux ✔️ Hitesh Kumar Saini
Android ✔️ Hitesh Kumar Saini
Web ✔️ Hitesh Kumar Saini
MacOS ✔️ @DiscombobulatedDrag
iOS ✔️ @DiscombobulatedDrag

Example app running on Web.

Example app running on Android.

Example app running on Linux.

License

This library & work under this repository is MIT licensed.

Copyright (c) 2021-2022 Hitesh Kumar Saini <saini123hitesh@gmail.com>

LX GitHub avatar
Autor no GitHub

LX ↗

Android/Kotlin; Flutter/Dart; C/C++

LinguagensC++DartSwiftCMakeRubyJavaHTMLCObjective-C

Categorias

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 5 itens

  • flutter{"sdk":"flutter"}
  • js^0.6.4
  • flutter_web_plugins{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • flutter_lintsDesenvolvimento^2.0.1

Como escolher um repositório para seu projeto?

Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.

  1. Busque por nome, autor ou descrição e filtre por tema.
  2. Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
  3. Confira o README, a licença e as issues no GitHub antes de usar o projeto.

Fontes e manutenção

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗