FLUTTER ECOSYSTEM

erikas-taroza/audiotags

Flutter에서 오디오 메타데이터를 읽고 쓸 수 있습니다. 여러 형식을 지원합니다.

audiotags 프로젝트 이미지
Stars
20
Forks
17
최근 푸시(UTC)
2025. 6. 12.
프로젝트 상태
활성
Erikas Taroza GitHub avatar
GITHUB User

Erikas Taroza ↗

언어DartRustCMakeC++RubyShellCBatchfileSwiftKotlinPowerShellObjective-C

이 저장소가 배포한 패키지

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

AudioTags

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

Usage

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

String? title = tag?.title;
String? trackArtist = tag?.trackArtist;
String? album = tag?.album;
String? albumArtist = tag?.albumArtist;
String? genre = tag?.genre;
int? year = tag?.year;
int? trackNumber = tag?.trackNumber;
int? trackTotal = tag?.trackTotal;
int? discNumber = tag?.discNumber;
int? discTotal = tag?.discTotal;
int? duration = tag?.duration;
List<Picture>? pictures = tag?.pictures;
Write
Tag tag = Tag(
    title: "Title",
    trackArtist: "Track Artist",
    album: "Album",
    albumArtist: "Album Artist",
    genre: "Genre",
    year: 2000,
    trackNumber: 1,
    trackTotal: 2,
    discNumber: 1,
    discTotal: 3,
    pictures: [
        Picture(
            bytes: Uint8List.fromList([0, 0, 0, 0]),
            mimeType: null,
            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.