Skip to content
This repository was archived by the owner on Aug 31, 2024. It is now read-only.
/ audiotags Public archive
forked from erikas-taroza/audiotags

Read and write audio metadata in Flutter. Supports multiple formats.

License

Notifications You must be signed in to change notification settings

dannyglover/audiotags

 
 

Repository files navigation

AudioTags

Read and write audio metadata in Flutter. Supports multiple formats.

Usage

Read

Tag? tag = await AudioTags.read(path);

String? title = tag?.title;
String? artist = tag?.artist;
String? album = tag?.album;
String? genre = tag?.genre;
int? year = tag?.year;
int? trackNumber = tag?.trackNumber;
int? trackTotal = tag?.trackTotal;
int? duration = tag?.duration;
List<Picture>? pictures = tag?.pictures;

Write

Tag tag = Tag(
    title: "Title",
    artist: "Artist",
    album: "Album",
    genre: "Genre",
    year: 2000,
    trackNumber: 1,
    trackTotal: 2,
    pictures: [
        Picture(
            bytes: Uint8List.fromList([0, 0, 0, 0]),
            mimeType: MimeType.none,
            pictureType: PictureType.other
        )
    ]
);

AudioTags.write(path, tag);

Supported Formats

This plugin uses a Rust crate called lofty to write and read metadata.

The supported formats are listed here.

About

Read and write audio metadata in Flutter. Supports multiple formats.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 28.0%
  • Rust 17.7%
  • C++ 16.8%
  • CMake 15.1%
  • Python 9.9%
  • C 6.6%
  • Other 5.9%