taglib_ffi 0.0.3
taglib_ffi: ^0.0.3 copied to clipboard
FFI Wrapper for tablib
taglib_ffi #
A dart wrapper of TagLib.
Only tested on MacOS for now!
Dependencies #
MacOS #
brew install cmake
brew install taglib
Setup #
MacOS #
HOMEBREW_PREFIX
variable needs to be defined:
export HOMEBREW_PREFIX="$(brew --prefix)"
Usage #
Add as a pubspec.yaml
dependency.
To read tags:
TagLib tagLib = TagLib();
Tags tags = tagLib.getAudioTags(filename);
if (tags.valid) {
...
}
To display artwork:
TagLib tagLib = TagLib();
Uint8List? artwork = tagLib.getArtworkBytes(filename);
-> Image.memory(_artwork!)
Tests #
make tests