搜尋套件、儲存庫與 APP 分類

套件詳情v0.4.1

dart_tags

用於處理音樂標籤(如 ID3)的程式庫。以純 Dart 編寫,可於 Flutter、Web 及 VM 項目中使用。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
427
喜歡數
23
Pub 分數
150

安裝套件

flutter pub add dart_tags

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

dart_tags 是一個純 Dart 庫,用於讀取和寫入音樂元數據標籤,例如 ID3,支援多種音訊格式。它讓開發者能在 Flutter、Web 和 VM 應用中管理元數據,而無需平台特定的依賴。該庫輕量級、跨平台,非常適合需要標籤操作的應用程式,例如音樂播放器或音訊編輯器。透過簡單的 API,可輕鬆完成取得歌曲標題、藝術家、專輯資訊以及新增自訂標籤等任務。其開源性質允許社群貢獻並保持透明。

適用情境

  • 讀取和寫入ID3標籤
  • 建構音樂播放器應用
  • 編輯音頻元數據
  • 建立音訊管理工具
  • 與基於網路的音頻平台整合

主要特色

  • 純 Dart 實現
  • 跨平台支援
  • 支援 ID3 標籤
  • 輕便且快速
  • 開源且可擴展

適合對象

  • Flutter 開發者
  • 網路音訊應用
  • 桌面音訊工具
  • 音頻元數據管理器
  • 僅 Dart 項目

使用建議

  • 僅限ID3格式
  • 不支援其他標籤類型,例如 Vorbis 標註
  • 需要手動處理檔案I/O
  • 未針對大規模批量處理進行優化
  • 依賴外部檔案存取權限

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Dart Tags

Coverage Status pub package Build Status Awesome Dart MIT

The library for parsing ID3 tags, written in pure Dart.

You can found sample app written with flutter framework here.

License

project under MIT license

Changelogs

full changelog

0.4.1

  • thanx to @antitim for find and reslove issue with a broken images in the tags in this [PR]
  • dependencies update

0.4.0 (Null Safety)

  • thanx for migrating to null safety to @timekone and this PR
  • updated some dependencies

0.3.1

  • implemented separate getting size of frame for id3 v2.3 and v2.4
  • added test case and asset
  • fixed typos, thanx to @algoshipda and his PR
  • fixed APIC picture type error, thanx to @algoshipda and his PR

Instalation

add dependency in pubsec.yaml

dependencies:
  dart_tags: ^0.4.0

Usage

A simple usage example:

import 'dart:io';

import 'package:dart_tags/dart_tags.dart';

main(List<String> args) {
  final tp = new TagProcessor();

  final f = new File(args[0]);

  tp.getTagsFromByteArray(f.readAsBytes()).then((l) => l.forEach((f) => print(f)));
}

Code of conduct

Please refer our code of conduct.

Features and bugs

Please feel free for feature requests and bugs at the issue tracker.

In addition

Thanx for contributing @magodo, @frankdenouter @algoshipda @timekone

Thanx for the Photo by Mink Mingle on Unsplash that we using in unit tests.

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案