Aus öffentlichen Paketdaten erstellte Orientierung.
Audiotagger ist ein Flutter/Dart-Paket, das das Lesen und Schreiben von ID3-Tags in MP3-Dateien ermöglicht. Es bietet Zugriff auf Metadaten wie Titel, Künstler, Album usw. und gibt Daten entweder als Map-Objekt oder als strukturiertes Tag-Objekt zurück. Ideal für Audio-Verwaltungsanwendungen unterstützt es grundlegende Tag-Manipulationen ohne externe Abhängigkeiten. Die Bibliothek ist leichtgewichtig und auf Kernfunktionen fokussiert, was sie für Entwickler geeignet macht, die eine einfache ID3-Tag-Verwaltung in ihren Musikanwendungen benötigen.
Anwendungsfälle
MP3-Metadaten bearbeiten
Song-Informationen lesen
Stapelaktualisierungen von Tags
Musik-App-Entwicklung
Metadatenextraktion aus Audiodateien
Hauptmerkmale
ID3-Tags lesen und schreiben
Unterstützt Karten- und Tag-Objekt-Ausgabe
Leichtgewichtiges und einfaches API
Keine externen Abhängigkeiten
Plattformübergreifende Kompatibilität
Geeignet für
Flutter-Entwickler, die mit Audio-Dateien arbeiten
Apps, die eine MP3-Metadatenverwaltung benötigen
Einfache Tag-Editierwerkzeuge
Audio-Bibliothek-Integrationen
Desktop- und mobile Audio-Anwendungen
Hinweise
Beschränkt auf ID3-Tags (keine anderen Formate)
Keine Unterstützung für erweiterte Tag-Typen
plattformspezifischer Dateizugriff erforderlich
Behandelt keine anderen Audioformate
Benötigt manuelle Fehlerbehandlung für Dateibetrieb
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
audiotagger
This library allow you to read and write ID3 tags to MP3 files.
Based on JAudiotagger library.
You can write the ID3 tags from a Map.
To reset a field, pass an empty string ("").
If the value is null, the field will be ignored and it will not be written.
voidsetTagsFromMap() async {
final path = "storage/emulated/0/Music/test.mp3";
final tags = <String, String>{
"title": "Title of the song",
"artist": "A fake artist",
"album": "", //This field will be reset"genre": null, //This field will not be written
};
final result = await tagger.writeTagsFromMap(
path: path,
tags: tags
);
}
You can write the ID3 tags from a Tag object.
To reset a field, pass an empty string ("").
If the value is null, the field will be ignored and it will not be written.
voidsetTags() async {
final path = "storage/emulated/0/Music/test.mp3";
final tag = Tag(
title: "Title of the song",
artist: "A fake artist",
album: "", //This field will be reset
genre: null, //This field will not be written
);
final result = await tagger.writeTags(
path: path,
tag: tag,
);
}
You can write a single tag field by specifying the field name.
To reset the field, pass an empty string ("").
If the value is null, the field will be ignored and it will not be written. \
voidsetTags() async {
final path = "storage/emulated/0/Music/test.mp3";
final result = await tagger.writeTag(
path: path,
tagField: "title",
value: "Title of the song"
);
}
This library is developed and maintained by Nicolò Rebaioli
:globe_with_meridians: My website
:mailbox: [niko.reba@gmail.com](mailto:niko.reba@gmail.com)